use correct stats

This commit is contained in:
ntr 2018-11-22 14:00:01 +11:00
parent 601e617bfc
commit 784905cf24
2 changed files with 5 additions and 6 deletions

View File

@ -21,8 +21,7 @@ class CrypPage extends Phaser.GameObjects.Group {
this.ws.sendCrypForget(cryp.id, skill.skill); this.ws.sendCrypForget(cryp.id, skill.skill);
}); });
this.add(text); this.add(text);
};
}
const knownSkill = (skill, i) => { const knownSkill = (skill, i) => {
const SKILL_X = STATS.knownX(); const SKILL_X = STATS.knownX();

View File

@ -44,7 +44,7 @@ pub enum Stat {
PhysDmg, PhysDmg,
SpellDmg, SpellDmg,
Hp, Hp,
Stam, Stamina,
} }
#[derive(Debug,Clone,Copy,PartialEq,Serialize,Deserialize)] #[derive(Debug,Clone,Copy,PartialEq,Serialize,Deserialize)]
@ -97,9 +97,9 @@ impl Cryp {
return Cryp { return Cryp {
id, id,
account: id, account: id,
phys_dmg: CrypStat { base: 0, stat: Stat::Str }, phys_dmg: CrypStat { base: 0, stat: Stat::PhysDmg },
spell_dmg: CrypStat { base: 0, stat: Stat::Int }, spell_dmg: CrypStat { base: 0, stat: Stat::SpellDmg },
stamina: CrypStat { base: 0, stat: Stat::Stam }, stamina: CrypStat { base: 0, stat: Stat::Stamina },
hp: CrypStat { base: 0, stat: Stat::Hp }, hp: CrypStat { base: 0, stat: Stat::Hp },
lvl: 0, lvl: 0,
xp: 0, xp: 0,