comparison gamelib/missions.py @ 86:13550947a330

Serialize as list, since json complains
author Neil Muller <drnlmuller@gmail.com>
date Wed, 09 May 2012 20:05:53 +0200
parents 182fce9f70b6
children c57b5b46d3e0
comparison
equal deleted inserted replaced
85:182fce9f70b6 86:13550947a330
124 self._prior_attempts = set() 124 self._prior_attempts = set()
125 if init_data: 125 if init_data:
126 self._prior_attempts = set(init_data) 126 self._prior_attempts = set(init_data)
127 127
128 def save_data(self): 128 def save_data(self):
129 return self._prior_attempts 129 return list(self._prior_attempts)
130 130
131 def attempt_no_equipment(self, state): 131 def attempt_no_equipment(self, state):
132 return Result(FAILURE, 0, -10, ( 132 return Result(FAILURE, 0, -10, (
133 "It takes three different interpreters before the Chinese" 133 "It takes three different interpreters before the Chinese"
134 " government finally understand that you're trying to hold" 134 " government finally understand that you're trying to hold"