Mercurial > sypikslang
diff gamelib/gamestate.py @ 27:4d9610c59efa
Reset points after spending them.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 06 May 2012 19:28:15 +0200 |
parents | 27570aca5d17 |
children | 12c33aac7684 |
line wrap: on
line diff
--- a/gamelib/gamestate.py Sun May 06 19:24:52 2012 +0200 +++ b/gamelib/gamestate.py Sun May 06 19:28:15 2012 +0200 @@ -52,6 +52,7 @@ if self.points < 0: raise RuntimeError('Spent too many points') new_stuff = self.lab.spend_points(self.cur_allocation, self.points) + self.points = 0 # Process mission results for result in mission_results: result.apply(self)