Implemented NPC movement (random)
[butaba-adventures.git] / gameobjects.py
index c9c945b..bc73fad 100644 (file)
@@ -90,8 +90,8 @@ class HealthPotion (GameObject):
        # using the potion
        def use (self, butaba):
                butaba.health += 25
-               if butaba.health > butaba.MAXHEALTH:
-                       butaba.health = butaba.MAXHEALTH
+               if butaba.health > constants.MAXHEALTH:
+                       butaba.health = constants.MAXHEALTH
 
 class Chest (GameObject):
        def __init__ (self, row, col, text, image, key_id, locked = False, objects = []):