diff --git a/src/login/character.rs b/src/login/character.rs index 2c83a25..67b6293 100644 --- a/src/login/character.rs +++ b/src/login/character.rs @@ -199,6 +199,8 @@ fn new_character(entity_gateway: &mut EG, user: &UserAccountE _ => {} } + character.meseta = 300; + let character = entity_gateway.create_character(character).unwrap(); let new_weapon = match character.char_class { diff --git a/src/ship/character.rs b/src/ship/character.rs index fef94ea..8b9be03 100644 --- a/src/ship/character.rs +++ b/src/ship/character.rs @@ -69,6 +69,7 @@ impl<'a> CharacterBytesBuilder<'a> { prop_y: character.appearance.prop_y, config: character.config.as_bytes(), techniques: character.techs.as_bytes(), + meseta: character.meseta, ..character::Character::default() } } diff --git a/src/ship/items.rs b/src/ship/items.rs index 568c100..20af9a7 100644 --- a/src/ship/items.rs +++ b/src/ship/items.rs @@ -310,6 +310,7 @@ impl ItemManager { }, FloorItemType::Meseta(meseta) => { client.character.meseta += meseta.0; + entity_gateway.save_character(&client.character); } }