Mercurial > rinkhals
diff gamelib/equipment.py @ 161:9b4213f6ea7f
improved equipment layers; unequip method on animal
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Thu, 03 Sep 2009 22:16:09 +0000 |
parents | baf857805867 |
children | 1d4d2202ef9f |
line wrap: on
line diff
--- a/gamelib/equipment.py Thu Sep 03 22:15:35 2009 +0000 +++ b/gamelib/equipment.py Thu Sep 03 22:16:09 2009 +0000 @@ -5,6 +5,7 @@ class Equipment(object): IS_EQUIPMENT = True + DRAW_LAYER = 0 def __init__(self): self._buy_price = self.BUY_PRICE @@ -22,6 +23,7 @@ class Weapon(Equipment): IS_WEAPON = True + DRAW_LAYER = 10 def in_range(self, gameboard, wielder, target): """Can the lucky wielder hit the potentially unlucky target with this?""" @@ -64,6 +66,7 @@ CHICKEN_IMAGE_FILE = 'sprites/equip_knife.png' class Armour(Equipment): + DRAW_LAYER = 5 def place(self, animal): """Give additional lives"""