Mercurial > rinkhals
diff gamelib/animal.py @ 445:af2482444945
Fix check for axes.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 21 Nov 2009 19:12:02 +0000 |
parents | 4efe57fcc1d7 |
children | fc648da2334c |
line wrap: on
line diff
--- a/gamelib/animal.py Sat Nov 21 19:08:22 2009 +0000 +++ b/gamelib/animal.py Sat Nov 21 19:12:02 2009 +0000 @@ -199,7 +199,7 @@ self.pos = pos_options[random.randint(0, len(pos_options)-1)] def has_axe(self): - return bool([e for e in self.weapons() if item.NAME == "axe"]) + return bool([e for e in self.weapons() if e.TYPE == "AXE"]) def chop(self, gameboard): if self.has_axe():