Mercurial > rinkhals
diff gamelib/level.py @ 428:a356e57529ea
buildings cost wood
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sat, 21 Nov 2009 16:21:38 +0000 |
parents | 1e24eedbf40f |
children | d5e4959cfe7a |
line wrap: on
line diff
--- a/gamelib/level.py Sat Nov 21 16:17:48 2009 +0000 +++ b/gamelib/level.py Sat Nov 21 16:21:38 2009 +0000 @@ -33,6 +33,7 @@ 'max foxes' : constants.DEFAULT_MAX_FOXES, 'min foxes' : 0, 'starting cash' : constants.DEFAULT_STARTING_CASH, + 'starting wood' : constants.DEFAULT_STARTING_WOOD, } # Add default fox weightings for animal, prob in DEFAULT_FOX_WEIGHTINGS: @@ -54,6 +55,7 @@ self.sell_price_dead_fox = config.getint('Game values', 'sell price dead fox') self.starting_cash = config.getint('Game values', 'starting cash') + self.starting_wood = config.getint('Game values', 'starting wood') self.fox_weightings = [] for animal, _prob in DEFAULT_FOX_WEIGHTINGS: self.fox_weightings.append((animal, config.getint('Fox probablities',