Mercurial > pyntnclick
comparison gamelib/scenes/cryo.py @ 136:d264850806dc
Better description handling in detail windows. (Sort of.)
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 24 Aug 2010 20:35:31 +0200 |
parents | b43599b7f8a2 |
children | 4f18e68fd0dc |
comparison
equal
deleted
inserted
replaced
135:b43599b7f8a2 | 136:d264850806dc |
---|---|
174 self.state.add_inventory_item('titanium_leg') | 174 self.state.add_inventory_item('titanium_leg') |
175 self.state.current_scene.things['cryo.unit.1'].set_data('contains_titanium_leg', False) | 175 self.state.current_scene.things['cryo.unit.1'].set_data('contains_titanium_leg', False) |
176 self.scene.remove_thing(self) | 176 self.scene.remove_thing(self) |
177 return Result("The skeletal occupant of this cryo unit has an artificial femur made of titanium. You take it.") | 177 return Result("The skeletal occupant of this cryo unit has an artificial femur made of titanium. You take it.") |
178 | 178 |
179 def get_description(self): | |
180 return "This femur looks synthetic." | |
181 | |
179 | 182 |
180 class CryoUnitWithCorpse(Scene): | 183 class CryoUnitWithCorpse(Scene): |
181 | 184 |
182 FOLDER = "cryo" | 185 FOLDER = "cryo" |
183 BACKGROUND = "cryo_unit_detail.png" | 186 BACKGROUND = "cryo_unit_detail.png" |