X-Git-Url: https://harishankar.org/repos/?p=butaba-adventures.git;a=blobdiff_plain;f=gameobjects.py;fp=gameobjects.py;h=bc73faded6907dd15119fab016bc8e3ccb577cb4;hp=c9c945ba973b932d8c2fd0b947175dc3b00ab46f;hb=667ea7c15261100aae75b61de8664863b58f01e4;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 = []):