Mercurial > pyntnclick
comparison gamelib/scenes/machine.py @ 406:90ae05f25793
spling
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sat, 28 Aug 2010 21:51:26 +0200 |
parents | 56a05ae56574 |
children | 19aff54b2e73 |
comparison
equal
deleted
inserted
replaced
405:8ba59ae66188 | 406:90ae05f25793 |
---|---|
119 self.set_interact("tube") | 119 self.set_interact("tube") |
120 else: | 120 else: |
121 self.set_interact("can_and_tube") | 121 self.set_interact("can_and_tube") |
122 | 122 |
123 def interact_without(self): | 123 def interact_without(self): |
124 return Result("You really don't want to but your hand in there.") | 124 return Result("You really don't want to put your hand in there.") |
125 | 125 |
126 def interact_with_empty_can(self, item): | 126 def interact_with_empty_can(self, item): |
127 contents = self.get_data('contents') | 127 contents = self.get_data('contents') |
128 if "can" in contents: | 128 if "can" in contents: |
129 return Result("There is already a can in the welder.") | 129 return Result("There is already a can in the welder.") |
187 elif self.state.items["cryo_pipes_three"] in self.state.inventory: | 187 elif self.state.items["cryo_pipes_three"] in self.state.inventory: |
188 # just for safety | 188 # just for safety |
189 pass | 189 pass |
190 else: | 190 else: |
191 self.state.add_inventory_item("cryo_pipes_one") | 191 self.state.add_inventory_item("cryo_pipes_one") |
192 return Result("With high-precision spitzensparken, the can and tube a welded" | 192 return Result("With high-precision spitzensparken, the can and tube are welded" |
193 " into a whole greater than the parts.", | 193 " into a whole greater than the parts.", |
194 soundfile='laser.ogg') | 194 soundfile='laser.ogg') |
195 | 195 |
196 | 196 |
197 class LaserWelderPowerLights(Thing): | 197 class LaserWelderPowerLights(Thing): |