Mercurial > pyntnclick
comparison gamelib/scenes/cryo.py @ 144:29ba5456e8b3
Removed a bunch of cruft.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 24 Aug 2010 22:57:09 +0200 |
parents | 4f18e68fd0dc |
children | a039d3b81b3d |
comparison
equal
deleted
inserted
replaced
143:d15270c2898c | 144:29ba5456e8b3 |
---|---|
106 | 106 |
107 INITIAL_DATA = { | 107 INITIAL_DATA = { |
108 'door': "shut", | 108 'door': "shut", |
109 } | 109 } |
110 | 110 |
111 SPEECH = [ | |
112 "Sadly, this isn't that sort of game.", | |
113 "Your valiant efforts are foiled by the Evil Game Designer.", | |
114 "The door resists. Try something else, perhaps?", | |
115 "You bang on the door with the titanium femur. It makes a clanging sound.", | |
116 ] | |
117 | |
118 def interact_with_titanium_leg(self, item): | 111 def interact_with_titanium_leg(self, item): |
119 if self.get_data('door') == "ajar": | 112 if self.get_data('door') == "ajar": |
120 self.open_door() | 113 self.open_door() |
121 return Result("You wedge the titanium femur into the chain and twist. With a satisfying *snap*, the chain breaks and the door opens.") | 114 return Result("You wedge the titanium femur into the chain and twist. With a satisfying *snap*, the chain breaks and the door opens.") |
122 elif self.get_data('door') == "shut": | 115 elif self.get_data('door') == "shut": |
131 self.half_open_door() | 124 self.half_open_door() |
132 if self.get_data('door') != "open": | 125 if self.get_data('door') != "open": |
133 return Result("It moves slightly and then stops. A chain on the other side is preventing it from opening completely.") | 126 return Result("It moves slightly and then stops. A chain on the other side is preventing it from opening completely.") |
134 else: | 127 else: |
135 self.state.set_current_scene('map') | 128 self.state.set_current_scene('map') |
136 return Result("You leave the room, hoping to never return.") | 129 return None |
137 | 130 |
138 def interact_default(self, item): | 131 def interact_default(self, item): |
139 return Result(random.choice([ | 132 return Result(random.choice([ |
140 "Sadly, this isn't that sort of game.", | 133 "Sadly, this isn't that sort of game.", |
141 "Your valiant efforts are foiled by the Evil Game Designer.", | 134 "Your valiant efforts are foiled by the Evil Game Designer.", |