Skip to content

Instantly share code, notes, and snippets.

@ShadowOne333
Created November 27, 2019 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShadowOne333/f2693c730150babbf515824bc83393f4 to your computer and use it in GitHub Desktop.
Save ShadowOne333/f2693c730150babbf515824bc83393f4 to your computer and use it in GitHub Desktop.
import math
def calculate_exp(constant, level):
return int(math.floor(level * level * (level + 1) * constant))
CONSTANTS = [214.0/256.0, 203.0/256.0, 0.75, 150.0/256.0]
for character_number, constant in enumerate(CONSTANTS):
print "{}:".format(character_number)
print " Level 00 EXP: 0"
print " Level 01 EXP: 0"
for level in range(2, 100):
print " Level {:02} EXP: {}".format(level, calculate_exp(constant, level))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment