Mercurial > boomslang
diff gamelib/scenes/machine.py @ 193:738608e90e9c
CloneableItem tweaks and a usable laser welder. zOMG!
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Wed, 25 Aug 2010 21:59:26 +0200 |
parents | 30f2308c1efc |
children | 9887c68110d8 |
line wrap: on
line diff
--- a/gamelib/scenes/machine.py Wed Aug 25 21:42:01 2010 +0200 +++ b/gamelib/scenes/machine.py Wed Aug 25 21:59:26 2010 +0200 @@ -15,6 +15,7 @@ def __init__(self, state): super(Machine, self).__init__(state) self.add_thing(ToMap()) + self.add_thing(LaserWelder()) def enter(self): return Result("The machine room is dark and forbidding.") @@ -78,7 +79,9 @@ return Result("The machine has enough cans to weld for the moment.") def get_description(self): - msg = "This is a Smith and Wesson 'zOMG' class high-precision laser welder." + if self.get_data('cans_in_place') == 0: + return "This is a Smith and Wesson 'zOMG' class high-precision laser welder." + msg = "The laser welder looks hungry, somehow." if self.get_data('cans_in_place') == 1: msg += " It currently contains an empty can." elif self.get_data('cans_in_place') == 2: