Mercurial > rinkhals
diff gamelib/gameboard.py @ 251:844bfb23d4b6
Refactored animal death and added death animations.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 12:35:37 +0000 |
parents | 5b9cd693fe7c |
children | e12b39132ffb |
line wrap: on
line diff
--- a/gamelib/gameboard.py Sat Sep 05 12:34:32 2009 +0000 +++ b/gamelib/gameboard.py Sat Sep 05 12:35:37 2009 +0000 @@ -759,12 +759,10 @@ self.toolbar.update_egg_counter(self.eggs) def kill_fox(self, fox): - if fox in self.foxes: - if not fox.survive_damage(): - self.killed_foxes += 1 - self.toolbar.update_fox_counter(self.killed_foxes) - self.add_cash(constants.SELL_PRICE_DEAD_FOX) - self.remove_fox(fox) + self.killed_foxes += 1 + self.toolbar.update_fox_counter(self.killed_foxes) + self.add_cash(constants.SELL_PRICE_DEAD_FOX) + self.remove_fox(fox) def remove_fox(self, fox): self.foxes.discard(fox)