Mercurial > rinkhals
diff gamelib/animal.py @ 419:d110d55c8449
Move hatching logic into chickens.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 21 Nov 2009 15:22:41 +0000 |
parents | 8f012ef1f64f |
children | f20ccd43a282 |
line wrap: on
line diff
--- a/gamelib/animal.py Sat Nov 21 13:14:47 2009 +0000 +++ b/gamelib/animal.py Sat Nov 21 15:22:41 2009 +0000 @@ -168,6 +168,9 @@ self.lay(gameboard) self.reload_weapon() + def start_day(self, gameboard): + self.hatch(gameboard) + def _game_death(self, gameboard): gameboard.remove_chicken(self) @@ -211,8 +214,7 @@ for egg in self.eggs[:]: gameboard.sell_one_egg(self) self.remove_eggs() # clean up stale images, etc. - return chick - return None + gameboard.place_hatched_chicken(chick, self.abode.building) def _find_killable_fox(self, weapon, gameboard): """Choose a random fox within range of this weapon."""