Mercurial > rinkhals
comparison gamelib/gameboard.py @ 98:725b292ca07b
Added sounds killing foxes and chickens, and nightfall
Renamed sounds for clarity
author | David Fraser <davidf@sjsoft.com> |
---|---|
date | Wed, 02 Sep 2009 12:14:24 +0000 |
parents | a851461d345e |
children | 7910b4e01dba |
comparison
equal
deleted
inserted
replaced
97:529a4d41c67a | 98:725b292ca07b |
---|---|
193 return | 193 return |
194 if len(self.chickens) == 1: | 194 if len(self.chickens) == 1: |
195 print "You can't sell your last chicken!" | 195 print "You can't sell your last chicken!" |
196 return | 196 return |
197 self.add_cash(constants.SELL_PRICE_CHICKEN) | 197 self.add_cash(constants.SELL_PRICE_CHICKEN) |
198 sound.play_sound("chicken4.ogg") | 198 sound.play_sound("sell-chicken.ogg") |
199 self.remove_chicken(chick) | 199 self.remove_chicken(chick) |
200 | 200 |
201 def buy_fence(self, tile_pos): | 201 def buy_fence(self, tile_pos): |
202 this_tile = self.tv.get(tile_pos) | 202 this_tile = self.tv.get(tile_pos) |
203 if this_tile not in [self.GRASSLAND, self.BROKEN_FENCE]: | 203 if this_tile not in [self.GRASSLAND, self.BROKEN_FENCE]: |