|
|
@ -318,4 +318,12 @@ impl EntityGateway for InMemoryGateway { |
|
|
|
equips.insert(*char_id, equipped.clone());
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
|
|
|
async fn set_character_meseta(&mut self, char_id: &CharacterEntityId, amount: usize) -> Result<(), GatewayError> {
|
|
|
|
let mut characters = self.characters.lock().unwrap();
|
|
|
|
if let Some(char) = characters.get_mut(&char_id) {
|
|
|
|
char.meseta = amount as u32;
|
|
|
|
}
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|