# 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 = []):