builds, drone balance, recursive heal mod fixed

This commit is contained in:
landgreen
2019-12-02 05:24:43 -08:00
parent 65977ce5aa
commit 349a6cf211
5 changed files with 61 additions and 46 deletions

View File

@@ -431,7 +431,7 @@ const mech = {
},
addHealth(heal) {
this.health += heal;
if (this.health > 1) this.health = 1;
if (this.health > 1 || b.isModFullHeal) this.health = 1;
this.displayHealth();
},
defaultFPSCycle: 0, //tracks when to return to normal fps
@@ -1445,6 +1445,7 @@ const mech = {
if (mech.fieldMeter === 1) {
mech.fieldMeter -= 0.43;
b.guns[gunIndex].fire() //spawn drone
mech.fireCDcycle = mech.cycle + 25; // set fire cool down to prevent +energy from making huge numbers of drones
}
if (mech.isHolding) {
mech.drawHold(mech.holdingTarget);