Mercurial > rinkhals
changeset 406:f8072b2d6dd1
Fix bug where sapper foxes overwrite costs for all foxes
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Fri, 20 Nov 2009 23:04:38 +0000 |
parents | ae3cee7a1337 |
children | bdc8bc78a796 |
files | gamelib/animal.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/animal.py Thu Nov 19 13:53:00 2009 +0000 +++ b/gamelib/animal.py Fri Nov 20 23:04:38 2009 +0000 @@ -558,6 +558,8 @@ IMAGE_FILE = 'sprites/sapper_fox.png' CONFIG_NAME = 'sapper fox' + costs = Fox.costs.copy() + def __init__(self, pos): Fox.__init__(self, pos) self.costs['fence'] = 2 # We don't worry about fences