Mercurial > rinkhals
diff gamelib/animal.py @ 187:6854e706dcdf
Remove hatched eggs
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Fri, 04 Sep 2009 17:53:21 +0000 |
parents | ff168162974e |
children | 9d31cfc3afde |
line wrap: on
line diff
--- a/gamelib/animal.py Fri Sep 04 17:49:37 2009 +0000 +++ b/gamelib/animal.py Fri Sep 04 17:53:21 2009 +0000 @@ -132,7 +132,10 @@ def hatch(self): """See if we have an egg to hatch""" if self.egg: - return self.egg.hatch() + chick = self.egg.hatch() + if chick: + self.egg = None + return chick return None def _find_killable_fox(self, weapon, gameboard):