comparison gamelib/scenes/mess.py @ 264:3cedc4f95925

Ran pyflakes and fixed some minor things.
author Jeremy Thurgood <firxen@gmail.com>
date Fri, 27 Aug 2010 19:35:20 +0200
parents 3b4a78422201
children 4012d50a4674
comparison
equal deleted inserted replaced
263:3b4a78422201 264:3cedc4f95925
157 157
158 def interact_with_machete(self, item): 158 def interact_with_machete(self, item):
159 if self.get_data("status") == "blocked": 159 if self.get_data("status") == "blocked":
160 self.set_data("status", "broken") 160 self.set_data("status", "broken")
161 self.set_interact("broken") 161 self.set_interact("broken")
162 return Result("With a flurry of disgusting mutant vegetable chunks," 162 return Result("With a flurry of disgusting mutant vegetable "
163 " you clear the overgrown broccoli away from the access" 163 "chunks, you clear the overgrown broccoli away from "
164 " panel and reveal some broken tubes. They look important.", 164 "the access panel and reveal some broken tubes. "
165 "They look important.",
165 soundfile='chopping.ogg') 166 soundfile='chopping.ogg')
166 elif self.get_data("status") == "broken": 167 elif self.get_data("status") == "broken":
167 return Result("It looks broken enough already.") 168 return Result("It looks broken enough already.")
168 else: 169 else:
169 return Return("After all that effort fixing it, chopping it to bits doesn't seem very smart.") 170 return Result("After all that effort fixing it, chopping it to "
171 "bits doesn't seem very smart.")
170 172
171 def interact_with_pipe(self, item): 173 def interact_with_pipe(self, item):
172 if self.get_data("status") == "blocked": 174 if self.get_data("status") == "blocked":
173 return Result("It would get lost in the fronds.") 175 return Result("It would get lost in the fronds.")
174 else: 176 else: