NOR NAND
possible bug fixes for the crouch lock bug tech: NAND gate - at the start of a level set flip-flop to "on" tech: NOR gate - do 50% more damage when the flip-flop is in the "off" state
This commit is contained in:
12
js/engine.js
12
js/engine.js
@@ -109,14 +109,14 @@ function collisionChecks(event) {
|
||||
return
|
||||
}
|
||||
|
||||
if (tech.isAnthropicHarm) {
|
||||
if (!tech.isAnthropicHarmImmune) {
|
||||
tech.isAnthropicHarmImmune = true
|
||||
if (document.getElementById("tech-flip-flop")) document.getElementById("tech-flip-flop").innerHTML = ` = on`
|
||||
if (tech.isFlipFlopHarm) {
|
||||
if (!tech.isFlipFlopHarmImmune) {
|
||||
tech.isFlipFlopHarmImmune = true
|
||||
if (document.getElementById("tech-flip-flop")) document.getElementById("tech-flip-flop").innerHTML = ` = <strong>on</strong>`
|
||||
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`
|
||||
tech.isFlipFlopHarmImmune = false //immune to damage this hit, lose immunity for next hit
|
||||
if (document.getElementById("tech-flip-flop")) document.getElementById("tech-flip-flop").innerHTML = ` = <strong>off</strong>`
|
||||
}
|
||||
} else {
|
||||
m.damage(dmg); //normal damage
|
||||
|
||||
Reference in New Issue
Block a user