Changeset 167:1d4d2202ef9f


Ignore:
Timestamp:
Sep 3, 2009, 10:40:20 PM (11 years ago)
Author:
Adrianna Pińska <adrianna.pinska@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@168
Message:

one helmet and vest per chicken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/equipment.py

    r161 r167  
    7171    def place(self, animal):
    7272        """Give additional lives"""
     73        for eq in animal.equipment:
     74            if eq.NAME == self.NAME:
     75                return False
    7376        animal.lives += self.PROTECTION
    7477        return True
Note: See TracChangeset for help on using the changeset viewer.