diff skaapsteker/sprites/items.py @ 237:e06c54d7701f

Add vase to demonstrate item state testing in dialogues.
author Simon Cross <hodgestar@gmail.com>
date Thu, 07 Apr 2011 14:39:50 +0200
parents 993f4f55eb93
children 15b2be883a40
line wrap: on
line diff
--- a/skaapsteker/sprites/items.py	Thu Apr 07 12:38:45 2011 +0200
+++ b/skaapsteker/sprites/items.py	Thu Apr 07 14:39:50 2011 +0200
@@ -16,3 +16,11 @@
 class TeaPot(Item):
     image_file = 'teapot.png'
     portable = False
+
+
+class Vase(Item):
+    image_file = 'dummy.png'
+
+    def setup(self, broken, **opts):
+        super(Vase, self).setup(**opts)
+        self.broken = broken