Mercurial > pyntnclick
diff gamelib/scenes/mess.py @ 409:72baf5bfebc6
Support for partial fixed state (pending artwork)
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 28 Aug 2010 22:13:19 +0200 |
parents | c81a4faa748e |
children | 1470a69d91ee |
line wrap: on
line diff
--- a/gamelib/scenes/mess.py Sat Aug 28 22:05:50 2010 +0200 +++ b/gamelib/scenes/mess.py Sat Aug 28 22:13:19 2010 +0200 @@ -17,7 +17,7 @@ INITIAL_DATA = { 'accessible': True, - 'life support online': False, + 'life support status': 'broken', # broken, replaced, fixed } def __init__(self, state): @@ -147,6 +147,7 @@ INTERACTS = { "blocked": InteractImage(250, 130, "blocking_broccoli.png"), "broken": InteractImage(250, 183, "broken_tubes.png"), + "replaced": InteractImage(250, 183, "fixed_tubes.png"), "fixed": InteractImage(252, 183, "fixed_tubes.png"), } @@ -189,7 +190,8 @@ else: self.state.remove_inventory_item(item.name) self.set_data('status', 'replaced') - # TODO: An interact image for fixed but untaped pipes + self.set_interact("replaced") + self.scene.set_data('life support status', 'replaced') return Result( "The pipes slot neatly into place, but don't make an airtight seal." ) @@ -203,7 +205,7 @@ self.set_data("fixed", True) self.set_data("status", "fixed") self.set_interact("fixed") - self.scene.set_data('life support online', True) + self.scene.set_data('life support status', 'fixed') # TODO: A less anticlimactic climax? return Result("It takes quite a lot of tape, but eventually everything is" " airtight and ready to hold pressure. Who'd've thought duct"