Mercurial > rinkhals
diff gamelib/gameboard.py @ 158:baf857805867
armour works now
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Thu, 03 Sep 2009 21:50:49 +0000 |
parents | 3afdefacb07f |
children | fa57868123d7 |
line wrap: on
line diff
--- a/gamelib/gameboard.py Thu Sep 03 21:45:57 2009 +0000 +++ b/gamelib/gameboard.py Thu Sep 03 21:50:49 2009 +0000 @@ -476,10 +476,12 @@ def kill_fox(self, fox): if fox in self.foxes: - self.killed_foxes += 1 - self.toolbar.update_fox_counter(self.killed_foxes) - self.add_cash(constants.SELL_PRICE_DEAD_FOX) - self.remove_fox(fox) + fox.lives -= 1 + if not fox.lives > 0: + 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)