changeset 291:beb9d6935b33

Tweak bridge
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 28 Aug 2010 00:09:33 +0200
parents 52404aac4e85
children cfabc9daf76c
files gamelib/scenes/bridge.py
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/scenes/bridge.py	Sat Aug 28 00:10:06 2010 +0200
+++ b/gamelib/scenes/bridge.py	Sat Aug 28 00:09:33 2010 +0200
@@ -54,6 +54,16 @@
                 (491, 494, 194, 105),
                 (422, 533, 71, 66),
                 )))
+        self.doctor = GenericDescThing('bridge.skel', 3,
+                "A skeleton hangs improbably from the wires.",
+                (
+                    (632, 148, 40, 29),
+                    (683, 176, 30, 101),
+                    (652, 274, 45, 96),
+                    (639, 180, 11, 95),
+                    ))
+        self.add_thing(self.doctor)
+
 
     def enter(self):
         pieces = [get_music(x, prefix='sounds') for x in self.MUSIC]
@@ -146,9 +156,14 @@
 
     INITIAL = 'stethoscope'
 
+    def get_description(self):
+        return "A stethoscope hangs from the neck of the skeleton"
+
     def interact_without(self):
         self.state.add_inventory_item('stethoscope')
         self.scene.remove_thing(self)
+        # Fill in the doctor's rect
+        self.scene.doctor.rect.append(self.rect)
         return Result("You pick up the stethoscope and verify that the doctor's "
                       "heart has stoped. Probably a while ago.")