comparison gamelib/gameboard.py @ 221:d46ae64240a1

Accept that new chicks die if you don't treat them properly.
author Simon Cross <hodgestar@gmail.com>
date Fri, 04 Sep 2009 22:31:16 +0000
parents 0a84d5aedc5c
children 527a5d4e3fa3
comparison
equal deleted inserted replaced
220:b379ec17236b 221:d46ae64240a1
695 try: 695 try:
696 building.add_occupant(new_chick) 696 building.add_occupant(new_chick)
697 self.add_chicken(new_chick) 697 self.add_chicken(new_chick)
698 new_chick.equip(equipment.Nest()) 698 new_chick.equip(equipment.Nest())
699 except buildings.BuildingFullError: 699 except buildings.BuildingFullError:
700 print "Building full." 700 # if there isn't a space for the
701 # new chick it dies. :/ Farm life
702 # is cruel.
703 pass
701 self.toolbar.update_egg_counter(self.eggs) 704 self.toolbar.update_egg_counter(self.eggs)
702 705
703 def kill_fox(self, fox): 706 def kill_fox(self, fox):
704 if fox in self.foxes: 707 if fox in self.foxes:
705 if not fox.survive_damage(): 708 if not fox.survive_damage():