Mercurial > rinkhals
changeset 445:af2482444945
Fix check for axes.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 21 Nov 2009 19:12:02 +0000 |
parents | feb9b7a23ef2 |
children | 0c523d384681 |
files | gamelib/animal.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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():