Browse Source

send char stats to player

pbs
jake 5 years ago
parent
commit
dd3038745d
  1. 10
      src/ship/ship.rs

10
src/ship/ship.rs

@ -142,6 +142,16 @@ impl<EG: EntityGateway> ShipServerState<EG> {
let mut fc = character::FullCharacter::default(); let mut fc = character::FullCharacter::default();
fc.character = client.character.character; fc.character = client.character.character;
let stats = self.level_table.get_stats_from_exp(character::Class::from(fc.character.ch_class), fc.character.exp);
fc.character.hp = stats.1.hp;
fc.character.atp = stats.1.atp;
fc.character.mst = stats.1.mst;
fc.character.evp = stats.1.evp;
fc.character.dfp = stats.1.dfp;
fc.character.ata = stats.1.ata;
fc.character.lck = stats.1.lck;
fc.character.level = stats.0 - 1;
fc.key_team_config.key_config = client.settings.settings.key_config; fc.key_team_config.key_config = client.settings.settings.key_config;
fc.key_team_config.joystick_config = client.settings.settings.joystick_config; fc.key_team_config.joystick_config = client.settings.settings.joystick_config;

Loading…
Cancel
Save