From dd3038745d7d574cfd8f90f2a0f9912cf2ef8961 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 3 Dec 2019 22:12:09 -0800 Subject: [PATCH] send char stats to player --- src/ship/ship.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ship/ship.rs b/src/ship/ship.rs index 802aff1..900e266 100644 --- a/src/ship/ship.rs +++ b/src/ship/ship.rs @@ -142,6 +142,16 @@ impl ShipServerState { let mut fc = character::FullCharacter::default(); 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.joystick_config = client.settings.settings.joystick_config;