Advertisement
IHATEMICROWAVEOVEN

afk xp calc

Jun 22nd, 2022 (edited)
1,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.27 KB | None | 0 0
  1. LVL0 = int(input("What level are you starting at? "))
  2. EXP0 = int(input("What EXP amount are you starting at? "))
  3. if EXP0 > LVL0*2:
  4.   while EXP0 > LVL0*2:
  5.     EXP0 -= LVL0*2
  6.     LVL0 += 1
  7.   print("Autocorrected to: Level " + str(LVL0) + " and EXP " + str(EXP0))
  8. save = input("\nWill you be entering time (say 'T') or your ending level (say 'L')?) ")
  9. if save == "T":
  10.   T = int(input("\nHow long are you taking, in seconds? "))
  11.   EXPF = EXP0 + T
  12.   LVLF = LVL0
  13.   while EXPF > LVLF*2:
  14.     EXPF -= LVLF*2
  15.     LVLF += 1
  16.   print("\nBEFORE: LEVEL " + str(LVL0) + " and EXP " + str(EXP0) + "\n FINAL: LEVEL " + str(LVLF) + " and EXP " + str(EXPF) + "\nTIME ELAPSED: " + str(T))
  17. elif save == "L":
  18.   LVLF = int(input("\nWhat level are you ending at? "))
  19.   EXPF = int(input("What EXP amount are you ending at? "))
  20.   if EXPF > LVLF*2:
  21.     while EXPF > LVLF*2:
  22.     EXPF -= LVLF*2
  23.     LVLF += 1
  24.     print("Autocorrected to: Level " + str(LVLF) + " and EXP " + str(EXPF))
  25.   LVLsave = LVLF
  26.   EXPsave = EXPF
  27.   while LVLF > LVL0:
  28.     EXPF += LVLF*2
  29.     LVLF -= 1
  30.   print("\nBEFORE: LEVEL " + str(LVL0) + " and EXP " + str(EXP0) + "\n FINAL: LEVEL " + str(LVLsave) + " and EXP " + str(EXPsave) + "\nTIME ELAPSED: " + str(EXPF-EXP0))
  31. else:
  32.   print("Come back when you're a little richer")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement