Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LVL0 = int(input("What level are you starting at? "))
- EXP0 = int(input("What EXP amount are you starting at? "))
- if EXP0 > LVL0*2:
- while EXP0 > LVL0*2:
- EXP0 -= LVL0*2
- LVL0 += 1
- print("Autocorrected to: Level " + str(LVL0) + " and EXP " + str(EXP0))
- save = input("\nWill you be entering time (say 'T') or your ending level (say 'L')?) ")
- if save == "T":
- T = int(input("\nHow long are you taking, in seconds? "))
- EXPF = EXP0 + T
- LVLF = LVL0
- while EXPF > LVLF*2:
- EXPF -= LVLF*2
- LVLF += 1
- print("\nBEFORE: LEVEL " + str(LVL0) + " and EXP " + str(EXP0) + "\n FINAL: LEVEL " + str(LVLF) + " and EXP " + str(EXPF) + "\nTIME ELAPSED: " + str(T))
- elif save == "L":
- LVLF = int(input("\nWhat level are you ending at? "))
- EXPF = int(input("What EXP amount are you ending at? "))
- if EXPF > LVLF*2:
- while EXPF > LVLF*2:
- EXPF -= LVLF*2
- LVLF += 1
- print("Autocorrected to: Level " + str(LVLF) + " and EXP " + str(EXPF))
- LVLsave = LVLF
- EXPsave = EXPF
- while LVLF > LVL0:
- EXPF += LVLF*2
- LVLF -= 1
- print("\nBEFORE: LEVEL " + str(LVL0) + " and EXP " + str(EXP0) + "\n FINAL: LEVEL " + str(LVLsave) + " and EXP " + str(EXPsave) + "\nTIME ELAPSED: " + str(EXPF-EXP0))
- else:
- print("Come back when you're a little richer")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement