# HG changeset patch # User Jeremy Thurgood # Date 1336325295 -7200 # Node ID 4d9610c59efaaa51481c2a82769c448a5f1d0abd # Parent 5d699b1f718809e7db9b113fa762b2c0036ff8a5 Reset points after spending them. diff -r 5d699b1f7188 -r 4d9610c59efa gamelib/gamestate.py --- 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)