From 784905cf248da1d366ecd4ad5952ab438e281774 Mon Sep 17 00:00:00 2001 From: ntr Date: Thu, 22 Nov 2018 14:00:01 +1100 Subject: [PATCH] use correct stats --- client/src/scenes/cryp.page.js | 3 +-- server/src/cryp.rs | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/client/src/scenes/cryp.page.js b/client/src/scenes/cryp.page.js index b71bb0f2..38b016d3 100644 --- a/client/src/scenes/cryp.page.js +++ b/client/src/scenes/cryp.page.js @@ -21,8 +21,7 @@ class CrypPage extends Phaser.GameObjects.Group { this.ws.sendCrypForget(cryp.id, skill.skill); }); this.add(text); - - } + }; const knownSkill = (skill, i) => { const SKILL_X = STATS.knownX(); diff --git a/server/src/cryp.rs b/server/src/cryp.rs index f14860e0..7a0316ab 100755 --- a/server/src/cryp.rs +++ b/server/src/cryp.rs @@ -44,7 +44,7 @@ pub enum Stat { PhysDmg, SpellDmg, Hp, - Stam, + Stamina, } #[derive(Debug,Clone,Copy,PartialEq,Serialize,Deserialize)] @@ -97,9 +97,9 @@ impl Cryp { return Cryp { id, account: id, - phys_dmg: CrypStat { base: 0, stat: Stat::Str }, - spell_dmg: CrypStat { base: 0, stat: Stat::Int }, - stamina: CrypStat { base: 0, stat: Stat::Stam }, + phys_dmg: CrypStat { base: 0, stat: Stat::PhysDmg }, + spell_dmg: CrypStat { base: 0, stat: Stat::SpellDmg }, + stamina: CrypStat { base: 0, stat: Stat::Stamina }, hp: CrypStat { base: 0, stat: Stat::Hp }, lvl: 0, xp: 0,