Created
November 27, 2019 20:50
-
-
Save ShadowOne333/f2693c730150babbf515824bc83393f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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