pause graphics upgrade

This commit is contained in:
landgreen
2020-01-20 14:22:55 -08:00
parent 27373d22e6
commit 2c287368a1
9 changed files with 180 additions and 73 deletions

View File

@@ -72,13 +72,13 @@ const b = {
b.mods[i].count = 0
}
},
acidModSetCheck() {
if (mech.health > 0.9) {
modOnHealthChange() {
if (b.isModAcidDmg && mech.health > 0.9) {
game.playerDmgColor = "rgba(0,80,80,0.9)"
b.isModAcidDmg = true;
b.modAcidDmg = 1.4
} else {
game.playerDmgColor = "rgba(0,0,0,0.7)"
b.isModAcidDmg = false;
b.modAcidDmg = 0
}
},
mods: [{
@@ -96,8 +96,8 @@ const b = {
maxCount: 1,
count: 0,
effect() {
b.modAcidDmg = 0.9
b.acidModSetCheck();
b.isModAcidDmg = true;
b.modOnHealthChange();
}
},
{
@@ -320,7 +320,7 @@ const b = {
maxCount: 1,
count: 0,
effect: () => {
b.isModMassEnergy = true // used in mech.usePowerUp
b.isModMassEnergy = true // used in mech.grabPowerUp
mech.fieldMeter = mech.fieldEnergyMax
}
},