Mercurial > sypikslang
changeset 27:4d9610c59efa
Reset points after spending them.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 06 May 2012 19:28:15 +0200 |
parents | 5d699b1f7188 |
children | 2f7d8f908de0 |
files | gamelib/gamestate.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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)