comparison gamelib/scenes/machine.py @ 219:326300c218a6

Choppable cryopipes and can refactoring.
author Jeremy Thurgood <firxen@gmail.com>
date Thu, 26 Aug 2010 20:53:19 +0200
parents 08f39251c6a5
children a5325919342e
comparison
equal deleted inserted replaced
218:6ad6575b501c 219:326300c218a6
16 def __init__(self, state): 16 def __init__(self, state):
17 super(Machine, self).__init__(state) 17 super(Machine, self).__init__(state)
18 self.add_thing(ToMap()) 18 self.add_thing(ToMap())
19 self.add_thing(LaserWelder()) 19 self.add_thing(LaserWelder())
20 self.add_thing(Grinder()) 20 self.add_thing(Grinder())
21 self.add_item(TitaniumMachete('titanium_machete')) 21 self.add_item(TitaniumMachete('machete'))
22 22
23 def enter(self): 23 def enter(self):
24 return Result("The machine room is dark and forbidding.") 24 return Result("The machine room is dark and forbidding.")
25 25
26 26
107 107
108 def interact_without(self): 108 def interact_without(self):
109 return Result("It looks like it eats fingers. Perhaps a different approach is in order?") 109 return Result("It looks like it eats fingers. Perhaps a different approach is in order?")
110 110
111 def interact_with_titanium_leg(self, item): 111 def interact_with_titanium_leg(self, item):
112 self.state.replace_inventory_item(item, self.state.items['titanium_machete']) 112 self.state.replace_inventory_item(item, self.state.items['machete'])
113 return Result("After much delicate grinding and a few close calls with" 113 return Result("After much delicate grinding and a few close calls with"
114 " various body parts, the titanium femur now resembles" 114 " various body parts, the titanium femur now resembles"
115 " a machete more than a bone. Nice and sharp, too.", 115 " a machete more than a bone. Nice and sharp, too.",
116 soundfile="grinder.ogg") 116 soundfile="grinder.ogg")
117 117