X-Git-Url: https://harishankar.org/repos/?p=butaba-adventures.git;a=blobdiff_plain;f=gameobjects.py;h=bc73faded6907dd15119fab016bc8e3ccb577cb4;hp=c9c945ba973b932d8c2fd0b947175dc3b00ab46f;hb=93544bdd97d65c88d0bc4b3f74f43f9689fb3918;hpb=58f80c37fa3c97f3cfb2a0cdd3096c529f65e204 diff --git a/gameobjects.py b/gameobjects.py index c9c945b..bc73fad 100644 --- a/gameobjects.py +++ b/gameobjects.py @@ -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 = []):