diff gamelib/gameboard.py @ 174:ff168162974e

armour gets damaged
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Thu, 03 Sep 2009 23:11:11 +0000
parents f7f29f1d434b
children 2b9176c35397
line wrap: on
line diff
--- a/gamelib/gameboard.py	Thu Sep 03 23:05:36 2009 +0000
+++ b/gamelib/gameboard.py	Thu Sep 03 23:11:11 2009 +0000
@@ -563,8 +563,7 @@
 
     def kill_fox(self, fox):
         if fox in self.foxes:
-            fox.lives -= 1
-            if not fox.lives > 0:
+            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)