Skip to content
  • This project
    • Loading...
  • Sign in

Branden / thiccmud

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 1
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • thiccmud
  • thiccMud
  • world
  • ruleset.py
  • Branden's avatar
    #ruleset start · 0ca1fc75
    0ca1fc75
    Branden committed 2016-12-22 13:33:15 -0500
ruleset.py 380 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
'''
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)