Mercurial > boomslang
comparison gamelib/scenes/mess.py @ 416:1470a69d91ee
Vague art for pipes + taped pipes
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 28 Aug 2010 22:49:11 +0200 |
parents | 72baf5bfebc6 |
children | add81f2b747e |
comparison
equal
deleted
inserted
replaced
415:56a164e0aa3f | 416:1470a69d91ee |
---|---|
145 NAME = "mess.tubes" | 145 NAME = "mess.tubes" |
146 | 146 |
147 INTERACTS = { | 147 INTERACTS = { |
148 "blocked": InteractImage(250, 130, "blocking_broccoli.png"), | 148 "blocked": InteractImage(250, 130, "blocking_broccoli.png"), |
149 "broken": InteractImage(250, 183, "broken_tubes.png"), | 149 "broken": InteractImage(250, 183, "broken_tubes.png"), |
150 "replaced": InteractImage(250, 183, "fixed_tubes.png"), | 150 "replaced": InteractImage(250, 183, "replaced_tubes.png"), |
151 "fixed": InteractImage(252, 183, "fixed_tubes.png"), | 151 "fixed": InteractImage(252, 183, "fixed_tubes.png"), |
152 } | 152 } |
153 | 153 |
154 INITIAL = "blocked" | 154 INITIAL = "blocked" |
155 | 155 |
191 self.state.remove_inventory_item(item.name) | 191 self.state.remove_inventory_item(item.name) |
192 self.set_data('status', 'replaced') | 192 self.set_data('status', 'replaced') |
193 self.set_interact("replaced") | 193 self.set_interact("replaced") |
194 self.scene.set_data('life support status', 'replaced') | 194 self.scene.set_data('life support status', 'replaced') |
195 return Result( | 195 return Result( |
196 "The pipes slot neatly into place, but don't make an airtight seal." | 196 "The pipes slot neatly into place, but don't make an airtight seal. " |
197 "You think one of the pipes has cracked slightly as well." | |
197 ) | 198 ) |
198 | 199 |
199 def interact_with_duct_tape(self, item): | 200 def interact_with_duct_tape(self, item): |
200 if self.get_data("status") == "broken": | 201 if self.get_data("status") == "broken": |
201 return Result("It would get lost in the fronds.") | 202 return Result("It would get lost in the fronds.") |