doublespeakgames / adarkroom

A Dark Room - A Minimalist Text Adventure
Mozilla Public License 2.0
7.2k stars 1.6k forks source link

Bolas stun appears to be permanent #703

Open avengah opened 2 years ago

avengah commented 2 years ago

Reading the code, it looks like it's intended to be a 4 second stun, but once the timer runs out, the enemy doesn't start attacking again. Once one bolas hits, the enemy is completely out of commission for the rest of the fight and you can take as long as you want.

SarahisCode commented 1 year ago

Hmm, I think I might have seen that issue myself. Where in the code does it say it's supposed to be a 4 second stun?

SarahisCode commented 1 year ago

I think what's going on is that the stun is made via setting the 'stunned' attribute of the enemy to the specified stun time. But that attribute isn't touched again, so enemyAttack sees the time every time it's run, says, "Yep, that's truthy", and doesn't do anything for the rest of the fight, causing the enemy to be permastunned.