IHATEMICROWAVEOVEN

DPS (2 Moves) (Paste into Python 3)

Jun 15th, 2021 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. print("This is a calculator for Pokemon with 2 moves.\nYou won't get away with anything else!")
  2. import time
  3. time.sleep(3)
  4. Debounce = float(input("\nWhat is your game's debounce? (2 in PA) "))
  5. Name1 = str(input("\nEnter the name of your first move: "))
  6. CD1 = float(input("Enter the cooldown of your first move: "))
  7. DMG1 = float(input("Enter the damage of your first move: "))
  8. Name2 = str(input("\nEnter the name of your second move: "))
  9. CD2 = float(input("Enter the cooldown of your second move: "))
  10. DMG2 = float(input("Enter the damage of your second move: "))
  11.  
  12. cont = True
  13. printdummy = "Combination: " + Name1 + " - " + Name2
  14. CCD1 = CD1 - Debounce * 2
  15. CCD2 = CD2 - Debounce
  16. AddDMG = DMG1 + DMG2
  17. AddDur = Debounce * 2
  18. while cont:
  19. if CCD1 == 0:
  20. printdummy += " - " + Name1
  21. CCD1 = CD1
  22. AddDMG += DMG1
  23. elif CCD2 == 0:
  24. printdummy += " - " + Name2
  25. CCD2 = CD2
  26. AddDMG += DMG2
  27. else:
  28. printdummy += " - nothing"
  29. AddDur += Debounce
  30. CCD1 -= Debounce
  31. CCD2 -= Debounce
  32. if CCD1 < 0:
  33. CCD1 = 0
  34. if CCD2 < 0:
  35. CCD2 = 0
  36. if CCD1 == 0 and CCD2 <= Debounce:
  37. cont = False
  38. print("\n" + printdummy + "\nDamage Dealt: " + str(AddDMG) + "\nTime Spent: " + str(AddDur) + "\nDPS: " + str(AddDMG/AddDur))
  39.  
  40. cont = True
  41. printdummy = "Combination: " + Name2 + " - " + Name1
  42. CCD2 = CD2 - Debounce * 2
  43. CCD1 = CD1 - Debounce
  44. AddDMG = DMG2 + DMG1
  45. AddDur = Debounce * 2
  46. while cont:
  47. if CCD2 == 0:
  48. printdummy += " - " + Name2
  49. CCD2 = CD2
  50. AddDMG += DMG2
  51. elif CCD1 == 0:
  52. printdummy += " - " + Name1
  53. CCD1 = CD1
  54. AddDMG += DMG1
  55. else:
  56. printdummy += " - nothing"
  57. AddDur += Debounce
  58. CCD2 -= Debounce
  59. CCD1 -= Debounce
  60. if CCD2 < 0:
  61. CCD2 = 0
  62. if CCD1 < 0:
  63. CCD1 = 0
  64. if CCD2 == 0 and CCD1 <= Debounce:
  65. cont = False
  66. print("\n" + printdummy + "\nDamage Dealt: " + str(AddDMG) + "\nTime Spent: " + str(AddDur) + "\nDPS: " + str(AddDMG/AddDur))
Add Comment
Please, Sign In to add comment