Started work on container objects like Chests etc.
[butaba-adventures.git] / gameobjects.py
index b4992a3..190631f 100644 (file)
@@ -58,10 +58,10 @@ class HealthPotion (GameObject):
                        butaba.health = butaba.MAXHEALTH
 
 class Chest (GameObject):
-       def __init__ (self, row, col, text, image, key_id, locked = False, items = []):
+       def __init__ (self, row, col, text, image, key_id, locked = False, objects = []):
                self.key_id = key_id
                self.locked = locked
-               self.items = items
+               self.objects = objects
                GameObject.__init__ (self, row, col, text, image, False)
 
        # no interaction with this object. Also solid so return False