diff gamelib/research.py @ 17:10d3db1f1e08

Set up initial research and rework breakthroughs.
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 06 May 2012 17:39:37 +0200
parents 9d61abb3cfaf
children 23720d0fd9a0
line wrap: on
line diff
--- a/gamelib/research.py	Sun May 06 17:12:40 2012 +0200
+++ b/gamelib/research.py	Sun May 06 17:39:37 2012 +0200
@@ -2,11 +2,14 @@
     NAME = None
     PREREQUISITES = ()
 
-    def __init__(self):
-        self.points = 0
+    def __init__(self, points=0):
+        self.points = points
 
-    def spend_points(self, points):
-        self.points += points
+    def spend_point(self):
+        self.points += 1
+
+    def can_spend(self, lab):
+        return True
 
 
 class Tesla(ResearchArea):