comparison gamelib/lab.py @ 178:52cc28b429b7

Debugging
author Neil Muller <drnlmuller@gmail.com>
date Sat, 12 May 2012 11:42:43 +0200
parents 4bbd4a1879f8
children
comparison
equal deleted inserted replaced
177:4bbd4a1879f8 178:52cc28b429b7
193 self.new_research.remove(type(science)) 193 self.new_research.remove(type(science))
194 elif isinstance(science, schematics.Schematic): 194 elif isinstance(science, schematics.Schematic):
195 self.new_schematics.remove(type(science)) 195 self.new_schematics.remove(type(science))
196 196
197 def steal_science(self, science): 197 def steal_science(self, science):
198 self._gain_science(science) 198 stolen = science()
199 self._stolen.append(science) 199 self._gain_science(stolen)
200 self._stolen.append(stolen)
200 201
201 def spend_points(self, things, basic_research): 202 def spend_points(self, things, basic_research):
202 breakthroughs = [] 203 breakthroughs = []
203 204
204 # First, allocate the points. 205 # First, allocate the points.