comparison gamelib/missions.py @ 164:7beac783139b

Fix calling of apply_mission_special to avoid gamestate.milestone ending up as a dict.
author Simon Cross <hodgestar@gmail.com>
date Fri, 11 May 2012 23:21:15 +0200
parents f1efd252e8b0
children d23f920efede
comparison
equal deleted inserted replaced
162:16e64557d85c 164:7beac783139b
34 34
35 def apply(self, state): 35 def apply(self, state):
36 if not self.applied: 36 if not self.applied:
37 state.money += self.money 37 state.money += self.money
38 state.reputation += self.reputation 38 state.reputation += self.reputation
39 state.apply_mission_special(self.special) 39 state.apply_mission_special(**self.special)
40 self.applied = True 40 self.applied = True
41 else: 41 else:
42 raise RuntimeError('attempted to apply result twice') 42 raise RuntimeError('attempted to apply result twice')
43 43
44 44