Mercurial > pyntnclick
comparison gamelib/scenes/cryo.py @ 103:0f799b6f40bc
Fix ajar door description
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Tue, 24 Aug 2010 11:41:10 +0200 |
parents | 7590586180f5 |
children | 65976205fc2d |
comparison
equal
deleted
inserted
replaced
102:322cbc0a8cce | 103:0f799b6f40bc |
---|---|
116 self.state.remove_inventory_item('titanium_leg') | 116 self.state.remove_inventory_item('titanium_leg') |
117 | 117 |
118 def get_description(self): | 118 def get_description(self): |
119 if self.get_data('door') == "open": | 119 if self.get_data('door') == "open": |
120 return 'An open doorway leads to the rest of the ship.' | 120 return 'An open doorway leads to the rest of the ship.' |
121 elif self.get_data('door') == "open": | 121 elif self.get_data('door') == "ajar": |
122 return "A rusty door. It can't open all the way because of a chain on the other side." | 122 return "A rusty door. It can't open all the way because of a chain on the other side." |
123 return 'A rusty door. It is currently closed.' | 123 return 'A rusty door. It is currently closed.' |
124 | 124 |
125 | 125 |
126 class CryoComputer(Thing): | 126 class CryoComputer(Thing): |