Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("This is a calculator for Pokemon with 2 moves.\nYou won't get away with anything else!")
- import time
- time.sleep(3)
- Debounce = float(input("\nWhat is your game's debounce? (2 in PA) "))
- Name1 = str(input("\nEnter the name of your first move: "))
- CD1 = float(input("Enter the cooldown of your first move: "))
- DMG1 = float(input("Enter the damage of your first move: "))
- Name2 = str(input("\nEnter the name of your second move: "))
- CD2 = float(input("Enter the cooldown of your second move: "))
- DMG2 = float(input("Enter the damage of your second move: "))
- cont = True
- printdummy = "Combination: " + Name1 + " - " + Name2
- CCD1 = CD1 - Debounce * 2
- CCD2 = CD2 - Debounce
- AddDMG = DMG1 + DMG2
- AddDur = Debounce * 2
- while cont:
- if CCD1 == 0:
- printdummy += " - " + Name1
- CCD1 = CD1
- AddDMG += DMG1
- elif CCD2 == 0:
- printdummy += " - " + Name2
- CCD2 = CD2
- AddDMG += DMG2
- else:
- printdummy += " - nothing"
- AddDur += Debounce
- CCD1 -= Debounce
- CCD2 -= Debounce
- if CCD1 < 0:
- CCD1 = 0
- if CCD2 < 0:
- CCD2 = 0
- if CCD1 == 0 and CCD2 <= Debounce:
- cont = False
- print("\n" + printdummy + "\nDamage Dealt: " + str(AddDMG) + "\nTime Spent: " + str(AddDur) + "\nDPS: " + str(AddDMG/AddDur))
- cont = True
- printdummy = "Combination: " + Name2 + " - " + Name1
- CCD2 = CD2 - Debounce * 2
- CCD1 = CD1 - Debounce
- AddDMG = DMG2 + DMG1
- AddDur = Debounce * 2
- while cont:
- if CCD2 == 0:
- printdummy += " - " + Name2
- CCD2 = CD2
- AddDMG += DMG2
- elif CCD1 == 0:
- printdummy += " - " + Name1
- CCD1 = CD1
- AddDMG += DMG1
- else:
- printdummy += " - nothing"
- AddDur += Debounce
- CCD2 -= Debounce
- CCD1 -= Debounce
- if CCD2 < 0:
- CCD2 = 0
- if CCD1 < 0:
- CCD1 = 0
- if CCD2 == 0 and CCD1 <= Debounce:
- cont = False
- print("\n" + printdummy + "\nDamage Dealt: " + str(AddDMG) + "\nTime Spent: " + str(AddDur) + "\nDPS: " + str(AddDMG/AddDur))
Add Comment
Please, Sign In to add comment