shieldingBoss
shieldingBoss - doesn't attack, but shields all mobs every 2.5s reworked how tetherBoss's constraint work please, let me know if the tether boss is buggy on any of the levels the chance for tether boss was removed from level: detours tech: flip-flop - collisions do 25% more harm, but you become immune to harm for the next collision
This commit is contained in:
15
js/engine.js
15
js/engine.js
@@ -108,7 +108,20 @@ function collisionChecks(event) {
|
||||
m.damage(dmg);
|
||||
return
|
||||
}
|
||||
m.damage(dmg);
|
||||
|
||||
if (tech.isAnthropicHarm) {
|
||||
if (!tech.isAnthropicHarmImmune) {
|
||||
tech.isAnthropicHarmImmune = true
|
||||
if (document.getElementById("tech-flip-flop")) document.getElementById("tech-flip-flop").innerHTML = ` = on`
|
||||
m.damage(dmg * 1.25); //damage triggers immune to next hit with extra 10% damage
|
||||
} else {
|
||||
tech.isAnthropicHarmImmune = false //immune to damage this hit, lose immunity for next hit
|
||||
if (document.getElementById("tech-flip-flop")) document.getElementById("tech-flip-flop").innerHTML = ` = off`
|
||||
}
|
||||
} else {
|
||||
m.damage(dmg); //normal damage
|
||||
}
|
||||
|
||||
if (tech.isPiezo) m.energy += 20.48;
|
||||
if (tech.isBayesian) powerUps.ejectTech()
|
||||
if (mob[k].onHit) mob[k].onHit(k);
|
||||
|
||||
Reference in New Issue
Block a user