Browse Source

meseta!

pbs
jake 5 years ago
parent
commit
1f775661fa
  1. 2
      src/login/character.rs
  2. 1
      src/ship/character.rs
  3. 1
      src/ship/items.rs

2
src/login/character.rs

@ -199,6 +199,8 @@ fn new_character<EG: EntityGateway>(entity_gateway: &mut EG, user: &UserAccountE
_ => {} _ => {}
} }
character.meseta = 300;
let character = entity_gateway.create_character(character).unwrap(); let character = entity_gateway.create_character(character).unwrap();
let new_weapon = match character.char_class { let new_weapon = match character.char_class {

1
src/ship/character.rs

@ -69,6 +69,7 @@ impl<'a> CharacterBytesBuilder<'a> {
prop_y: character.appearance.prop_y, prop_y: character.appearance.prop_y,
config: character.config.as_bytes(), config: character.config.as_bytes(),
techniques: character.techs.as_bytes(), techniques: character.techs.as_bytes(),
meseta: character.meseta,
..character::Character::default() ..character::Character::default()
} }
} }

1
src/ship/items.rs

@ -310,6 +310,7 @@ impl ItemManager {
}, },
FloorItemType::Meseta(meseta) => { FloorItemType::Meseta(meseta) => {
client.character.meseta += meseta.0; client.character.meseta += meseta.0;
entity_gateway.save_character(&client.character);
} }
} }

Loading…
Cancel
Save