tech: Higgs mechanism - you can't move when firing, reduce harm by 60% when firing
  removed Galilean group

damage immunity graphic is more obvious
This commit is contained in:
landgreen
2021-01-12 10:39:47 -08:00
parent 059e133667
commit 8bcda6ebf6
5 changed files with 136 additions and 74 deletions

View File

@@ -1005,10 +1005,8 @@ const mobs = {
if (this.shield) dmg *= 0.075
//energy and heal drain should be calculated after damage boosts
if (tech.energySiphon && dmg !== Infinity && this.dropPowerUp) {
mech.energy += Math.min(this.health, dmg) * tech.energySiphon
// if (mech.energy > mech.maxEnergy) mech.energy = mech.maxEnergy
}
if (tech.energySiphon && dmg !== Infinity && this.dropPowerUp) mech.energy += Math.min(this.health, dmg) * tech.energySiphon
if (tech.healthDrain && dmg !== Infinity && this.dropPowerUp) {
mech.addHealth(Math.min(this.health, dmg) * tech.healthDrain)
if (mech.health > mech.maxHealth) mech.health = mech.maxHealth