diff gamelib/scenes/mess.py @ 230:ec2682b373e7

Add chopping sound. Tweak mess descriptions
author Neil Muller <neil@dip.sun.ac.za>
date Thu, 26 Aug 2010 23:23:10 +0200
parents ce1e85768f7b
children 12c4f87ea424
line wrap: on
line diff
--- a/gamelib/scenes/mess.py	Thu Aug 26 23:18:47 2010 +0200
+++ b/gamelib/scenes/mess.py	Thu Aug 26 23:23:10 2010 +0200
@@ -146,7 +146,12 @@
         }
 
     def get_description(self):
-        return "The brocolli seems to have become entangled with something"
+        if self.get_data('status') == "blocked":
+            return "The brocolli seems to have become entangled with something"
+        elif self.get_data("status") == "broken":
+            return "These broken pipes look important."
+        else:
+            return "Your fix looks like it's holding up well."
 
     def interact_with_machete(self, item):
         if self.get_data("status") == "blocked":
@@ -154,7 +159,8 @@
             self.set_interact("broken")
             return Result("With a flurry of disgusting mutant vegetable chunks,"
                           " you clear the overgrown broccoli away from the access"
-                          " panel and reveal some broken tubes. They look important.")
+                          " panel and reveal some broken tubes. They look important.",
+                          soundfile='chopping.ogg')
         elif self.get_data("status") == "broken":
             return Result("It looks broken enough already.")
         else: