Higgs
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user