Mercurial > pyntnclick
comparison gamelib/scenes/cryo.py @ 519:8f3c82c685a4
Fix is_interactive() by adding tool param.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 07 Sep 2010 18:13:35 +0200 |
parents | 3e91c82c2240 |
children | 821b322e903b |
comparison
equal
deleted
inserted
replaced
518:3e91c82c2240 | 519:8f3c82c685a4 |
---|---|
172 ("Prisoner %s. Vandalism is an offence punishable by a " | 172 ("Prisoner %s. Vandalism is an offence punishable by a " |
173 "minimum of an additional 6 months to your sentence." | 173 "minimum of an additional 6 months to your sentence." |
174 ) % PLAYER_ID, self.state)) | 174 ) % PLAYER_ID, self.state)) |
175 return responses | 175 return responses |
176 | 176 |
177 def is_interactive(self): | 177 def is_interactive(self, tool=None): |
178 return self.get_data('fixed') | 178 return self.get_data('fixed') |
179 | 179 |
180 def interact_without(self): | 180 def interact_without(self): |
181 if self.get_data('fixed'): | 181 if self.get_data('fixed'): |
182 return Result("These pipes aren't attached to the wall very solidly.") | 182 return Result("These pipes aren't attached to the wall very solidly.") |
203 | 203 |
204 def interact_with_machete(self, item): | 204 def interact_with_machete(self, item): |
205 return Result("These pipes carry fluid to the working cryo units." | 205 return Result("These pipes carry fluid to the working cryo units." |
206 " Chopping them down doesn't seem sensible.") | 206 " Chopping them down doesn't seem sensible.") |
207 | 207 |
208 def is_interactive(self): | 208 def is_interactive(self, tool=None): |
209 return True | 209 return True |
210 | 210 |
211 def interact_without(self): | 211 def interact_without(self): |
212 return Result("These pipes aren't attached to the wall very solidly.") | 212 return Result("These pipes aren't attached to the wall very solidly.") |
213 | 213 |
298 | 298 |
299 def __init__(self, number, description, detailed_description, areas): | 299 def __init__(self, number, description, detailed_description, areas): |
300 super(GenericCryoUnit, self).__init__('cryo.unit', number, description, areas) | 300 super(GenericCryoUnit, self).__init__('cryo.unit', number, description, areas) |
301 self.detailed_description = detailed_description | 301 self.detailed_description = detailed_description |
302 | 302 |
303 def is_interactive(self): | 303 def is_interactive(self, tool=None): |
304 return True | 304 return True |
305 | 305 |
306 def interact_without(self): | 306 def interact_without(self): |
307 return Result(self.detailed_description) | 307 return Result(self.detailed_description) |
308 | 308 |