ruleset.py
380 Bytes
'''
Created on Dec 22, 2016
@author: Branden
'''
def add_EXP(character, amount):
"Add experience to a character, tracking level increases"
character.db.EXP += amount
if character.db.EXP >= (character.db.level + 1) ** 2:
character.db.level += 1
character.msg("You are now level %i!" % character.db.level)