Mercurial > sypikslang
comparison gamelib/lab.py @ 23:f6a3b213857b
Fix up some game state logic, add very basic REPL game interface.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 06 May 2012 19:06:28 +0200 |
parents | bdc6bfc34ef2 |
children | 23720d0fd9a0 |
comparison
equal
deleted
inserted
replaced
22:296ce36fa7d9 | 23:f6a3b213857b |
---|---|
79 breakthroughs.extend(self.apply_area_research(thing)) | 79 breakthroughs.extend(self.apply_area_research(thing)) |
80 | 80 |
81 # Finally, check for research breakthroughs. | 81 # Finally, check for research breakthroughs. |
82 breakthroughs.extend(self.apply_basic_research(basic_research)) | 82 breakthroughs.extend(self.apply_basic_research(basic_research)) |
83 | 83 |
84 # Now that we have our breakthroughs, apply them. | |
85 print breakthroughs | |
86 | |
87 return breakthroughs | 84 return breakthroughs |
88 | 85 |
89 def _get_science(self, science_class): | 86 def _get_science(self, science_class): |
90 for science in self.science: | 87 for science in self.science: |
91 if isinstance(science, science_class): | 88 if isinstance(science, science_class): |