Lurkers: self.findEnemy not working


#1

On the source code in “Lurkers”, the program is highlighting this line:

# findEnemies returns a list of all your enemies.
# Only attack shamans. Don't attack yaks!

enemies = self.findEnemies()

and telling me that the function is undefined. In the comments, it says that findEnemies is a new function, and
enemies = self.findEnemies() is part of the source code. Anybody else having similar problems? I looked at the items but couldn’t find one which allowed me to use self.findEnemies().


#2

findEnemies() is on glasses, I believe any pair after the first pair, but not positive.


#3


#4

I just checked and it’s not on any of the Wooden Glasses. It only starts with the 100 gem Mahogany Glasses, which are currently not flagged as needed for the level (with a buy prompt).


#5

I’ve just noted that Mahogany Glasses or better are required for this and later levels–thanks for spotting that one.


#6

No prob. As you might be able to tell, I love this project!


#7

I won’t Lurkers let pass code