X-Git-Url: https://harishankar.org/repos/?p=butaba-adventures.git;a=blobdiff_plain;f=gameobjects.py;fp=gameobjects.py;h=190631f11c90cfdb1ebf81ad03774c5b6ba75339;hp=b4992a352eb38238c1028a9e23cad98ad87f2806;hb=6552a4a3522d0b48177a9c2ebedda92b824874f7;hpb=3e350cff23064e74da2ead6c65e46ccdf3e7fa2f diff --git a/gameobjects.py b/gameobjects.py index b4992a3..190631f 100644 --- a/gameobjects.py +++ b/gameobjects.py @@ -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