# HG changeset patch # User Neil Muller # Date 1282827569 -7200 # Node ID aeb96ca5f76c55956975f980e0d4da35eee529ef # Parent 7a2cb054010d2a0af136fe1c6a6c7d6b1a768763 Add more sounds to cryo room diff -r 7a2cb054010d -r aeb96ca5f76c gamelib/scenes/cryo.py --- a/gamelib/scenes/cryo.py Thu Aug 26 14:59:17 2010 +0200 +++ b/gamelib/scenes/cryo.py Thu Aug 26 14:59:29 2010 +0200 @@ -27,6 +27,7 @@ MUSIC = [ 'drip1.ogg', 'drip2.ogg', + 'drip3.ogg', 'creaking.ogg', 'silent.ogg', 'silent.ogg', @@ -171,7 +172,8 @@ return Result(detail_view='cryo_detail') def interact_with_titanium_leg(self, item): - return Result("You hit the chamber that used to hold this very leg. Nothing happens as a result.") + return Result("You hit the chamber that used to hold this very leg. Nothing happens as a result.", + soundfile="clang2.ogg") def get_description(self): if self.get_data('contains_titanium_leg'): @@ -197,7 +199,7 @@ "You bang on the chamber with the titanium femur. Nothing much happens", "Hitting the cryo unit with the femur doesn't achieve anything", "You hit the chamber with the femur. Nothing happens.", - ])) + ]), soundfile="clang2.ogg") class CryoRoomDoor(Thing): @@ -220,7 +222,7 @@ def interact_with_titanium_leg(self, item): if self.get_data('door') == "ajar": self.open_door() - return Result("You wedge the titanium femur into the chain and twist. With a satisfying *snap*, the chain breaks and the door opens.") + return Result("You wedge the titanium femur into the chain and twist. With a satisfying *snap*, the chain breaks and the door opens.", soundfile='break.ogg') elif self.get_data('door') == "shut": text = "You bang on the door with the titanium femur. It makes a clanging sound." speech.say(self.name, text) @@ -232,7 +234,7 @@ if self.get_data('door') == "shut": self.half_open_door() if self.get_data('door') != "open": - return Result("It moves slightly and then stops. A chain on the other side is preventing it from opening completely.") + return Result("It moves slightly and then stops. A chain on the other side is preventing it from opening completely.", soundfile='chain.ogg') else: self.state.set_current_scene('map') return None