comparison gamelib/animal.py @ 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 e5247ec76f24
children bdc8bc78a796
comparison
equal deleted inserted replaced
405:ae3cee7a1337 406:f8072b2d6dd1
556 556
557 DIG_ANIMATION = animations.FenceExplosion 557 DIG_ANIMATION = animations.FenceExplosion
558 IMAGE_FILE = 'sprites/sapper_fox.png' 558 IMAGE_FILE = 'sprites/sapper_fox.png'
559 CONFIG_NAME = 'sapper fox' 559 CONFIG_NAME = 'sapper fox'
560 560
561 costs = Fox.costs.copy()
562
561 def __init__(self, pos): 563 def __init__(self, pos):
562 Fox.__init__(self, pos) 564 Fox.__init__(self, pos)
563 self.costs['fence'] = 2 # We don't worry about fences 565 self.costs['fence'] = 2 # We don't worry about fences
564 566
565 def _dig(self, gameboard, dig_pos): 567 def _dig(self, gameboard, dig_pos):