diff gamelib/lab.py @ 58:52913ba12988

Check for multiple points in can_spend
author Neil Muller <drnlmuller@gmail.com>
date Mon, 07 May 2012 23:20:41 +0200
parents 373c57ab4140
children b503ccb0a86e
line wrap: on
line diff
--- a/gamelib/lab.py	Mon May 07 23:13:05 2012 +0200
+++ b/gamelib/lab.py	Mon May 07 23:20:41 2012 +0200
@@ -66,7 +66,7 @@
         # First, allocate the points.
         for thing in things:
             assert thing in self.science
-            assert thing.can_spend(self)
+            assert thing.can_spend(self, 1)
             thing.spend_point()
 
         # Next, check for schematic breakthroughs and upgrades