comparison gamelib/gameboard.py @ 226:86a6d9e360dd

Fix outdoor chicken selling bug.
author Simon Cross <hodgestar@gmail.com>
date Fri, 04 Sep 2009 23:20:40 +0000
parents 97a22d0b0471
children b9782f622006
comparison
equal deleted inserted replaced
225:97a22d0b0471 226:86a6d9e360dd
355 if chick is None: 355 if chick is None:
356 building = self.get_building(tile_pos) 356 building = self.get_building(tile_pos)
357 if building and building.NAME in buildings.HENHOUSES: 357 if building and building.NAME in buildings.HENHOUSES:
358 self.open_building_dialog(building, do_sell) 358 self.open_building_dialog(building, do_sell)
359 return 359 return
360 do_sell(chick) 360
361 361 if do_sell(chick):
362 self.remove_chicken(chick)
362 363
363 def sell_egg(self, tile_pos): 364 def sell_egg(self, tile_pos):
364 def do_sell(chicken): 365 def do_sell(chicken):
365 if chicken.egg: 366 if chicken.egg:
366 # We sell the egg 367 # We sell the egg