Mercurial > rinkhals
comparison gamelib/animal.py @ 305:32149b1d9fd2
Capitalised all equipment names.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 05 Sep 2009 17:36:36 +0000 |
parents | 78c49d87e175 |
children | b3c90e49a6b7 |
comparison
equal
deleted
inserted
replaced
304:67021d0920dc | 305:32149b1d9fd2 |
---|---|
165 self.equip(equipment.NestEgg()) | 165 self.equip(equipment.NestEgg()) |
166 | 166 |
167 def remove_eggs(self): | 167 def remove_eggs(self): |
168 """Clean up the egg state""" | 168 """Clean up the egg state""" |
169 self.eggs = [] | 169 self.eggs = [] |
170 self.unequip_by_name("nestegg") | 170 self.unequip_by_name("Nestegg") |
171 | 171 |
172 def remove_one_egg(self): | 172 def remove_one_egg(self): |
173 """Clean up the egg state""" | 173 """Clean up the egg state""" |
174 self.eggs.pop() | 174 self.eggs.pop() |
175 if not self.eggs: | 175 if not self.eggs: |
176 self.unequip_by_name("nestegg") | 176 self.unequip_by_name("Nestegg") |
177 | 177 |
178 def get_num_eggs(self): | 178 def get_num_eggs(self): |
179 return len(self.eggs) | 179 return len(self.eggs) |
180 | 180 |
181 def hatch(self, gameboard): | 181 def hatch(self, gameboard): |