Mercurial > sypikslang
diff gamelib/gamestate.py @ 81:59afe9f92383
Hook up basic results screen
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Wed, 09 May 2012 13:03:39 +0200 |
parents | a40a76012bd7 |
children | b0d97d51df51 |
line wrap: on
line diff
--- a/gamelib/gamestate.py Wed May 09 12:08:44 2012 +0200 +++ b/gamelib/gamestate.py Wed May 09 13:03:39 2012 +0200 @@ -15,6 +15,7 @@ # Will be updated on the next turn self.points = 0 self.reputation = 0 + self.turn = 0 # Missions being attempted self.cur_missions = [] # Science allocation for the current turn @@ -32,6 +33,7 @@ def start_turn(self): # Make more flexible? self.points += 3 + self.turn += 1 self.cur_missions = [] self.cur_allocation = [] @@ -64,7 +66,7 @@ messages = [] for result in mission_results: result.apply(self) - messages.append((result.outcome, result.msg)) + messages.append((result.outcome, result.message)) for science in new_stuff: # FIXME: Update UI better. if science.SCIENCE_TYPE == 'research':