Changeset 135:149822fbebeb


Ignore:
Timestamp:
Sep 2, 2009, 10:14:33 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@136
Message:

Check that there is enough cash before logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r131 r135  
    350350    def logging_forest(self, tile_pos):
    351351        if self.tv.get(tile_pos) != self.WOODLAND:
     352            return
     353        if self.cash < constants.LOGGING_PRICE:
    352354            return
    353355        self.add_cash(-constants.LOGGING_PRICE)
Note: See TracChangeset for help on using the changeset viewer.