ProjectTitan313

Leftovers Calculator

Nov 13th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.93 KB | None | 0 0
  1. # Quick calculator for Leftovers numbers.
  2. # Written by ProjectTitan313
  3. #
  4. # --- Changelog ---
  5. #
  6. # 11/9/2012: Initial program, still wearing diapers.
  7. # A few derps later, it works fine. Whee
  8.  
  9. # Usual modules imported; may or may not actually need them.
  10.  
  11. import math
  12. import time
  13.  
  14. # Variables defined.
  15.  
  16. HealthAmount = 0
  17. LeftoverNumber = []
  18. HealthRegen = 0
  19.  
  20. # Yep, the intro no one actually likes.
  21.  
  22. time.sleep(2)
  23. print ("Leftovers Number Calculator by ProjectTitan313")
  24. print ("Enter anything to continue.")
  25. input()
  26.  
  27. # Loop to calculate Leftovers numbers and add them to a list defined above.
  28.  
  29. while HealthRegen < 44:
  30.     HealthRegen += 1
  31.     RegenCount = HealthRegen
  32.     HealthAmount = RegenCount * 16
  33.     LeftoverNumber.append(HealthAmount)
  34.  
  35. # End of loop. Prints out the list now that its calculated every possible HP
  36. # value for maximum Leftovers recovery.
  37.  
  38. print ("Leftovers numbers are:")
  39. print (LeftoverNumber)
Advertisement
Add Comment
Please, Sign In to add comment