bug fix patch

enthalpy: 3->2% heal from damage done
technical debt: 8->15% less damage for each tech
This commit is contained in:
landgreen
2022-03-24 05:58:58 -07:00
parent 6b2b59a115
commit bae43b334c
6 changed files with 10 additions and 22 deletions

View File

@@ -1077,7 +1077,7 @@ const mobs = {
this.health -= dmg
//this.fill = this.color + this.health + ')';
this.onDamage(dmg); //custom damage effects
if (this.health < 0.05 && this.alive) {
if ((this.health < 0.05 || isNaN(this.health)) && this.alive) {
this.death();
}
}