From 1f775661fabbeb2e5ee56dcced4be576245b7a5d Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 6 May 2020 07:51:03 -0600 Subject: [PATCH] meseta! --- src/login/character.rs | 2 ++ src/ship/character.rs | 1 + src/ship/items.rs | 1 + 3 files changed, 4 insertions(+) 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); } }