Mercurial > sypikslang
comparison gamelib/lab.py @ 138:14917385a0fd
Better handling of mission results and turn-end messages.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Thu, 10 May 2012 22:33:26 +0200 |
parents | ef63532cac13 |
children | 372d886f9e70 |
comparison
equal
deleted
inserted
replaced
137:fb8037bc22f1 | 138:14917385a0fd |
---|---|
126 self._gain_science(breakthrough) | 126 self._gain_science(breakthrough) |
127 breakthroughs = [breakthrough] | 127 breakthroughs = [breakthrough] |
128 return breakthroughs | 128 return breakthroughs |
129 | 129 |
130 def apply_basic_research(self, basic_research): | 130 def apply_basic_research(self, basic_research): |
131 if basic_research <= 1: | 131 if basic_research <= 0: |
132 return [] | 132 return [] |
133 | 133 |
134 options = self.find_new_research() | 134 options = self.find_new_research() |
135 success_chance = self.BASIC_RESEARCH_SUCCESS_RATE * ( | 135 success_chance = self.BASIC_RESEARCH_SUCCESS_RATE * ( |
136 self.BASIC_RESEARCH_SUCCESS_MULTIPLIER ** basic_research) | 136 self.BASIC_RESEARCH_SUCCESS_MULTIPLIER ** basic_research) |