Yet another ‘Endangered Burl’ question. I’ve checked out several other posts, but haven’t seen my question come up.
My Python script is below. Each time I run it, the character goes through the loop one time and then terminates instead of restarting the loop. The initial enemy is a burl, so the character runs to the village- and the program ends.
Any hints? Thanks in advance.
loop: enemy = self.findNearestEnemy() if enemy: if enemy.type is 'munchkin': self.attack(enemy) elif enemy.type is 'thrower': self.attack(enemy) elif enemy.type is 'burl': self.moveXY(22, 47) else: self.say("I/'ve never seen anything like it.") else: pass