Advertisement
HoratioZEDU

Untitled

Mar 10th, 2014
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. import math, os
  2. # Defining the variables we need
  3. final_damage=0
  4. final_splash_damage=0
  5. final_base_damage=0
  6. spash_bonus=0
  7. crit_multiplier=0
  8. base_bonus=0
  9. gun_type=0
  10. playthrough=0
  11. element_mult=0
  12.  
  13.  
  14. # This function will get us the necessary variables to calculate the final damage.
  15. def get_vars():
  16. # Gotta make those variables global.
  17. global gun_type
  18. global playthrough
  19. global final_base_damage
  20. global element_mult
  21.  
  22. print("Please enter the gun type: (A/B/C/D/S/S1/X/FML/WTF) ")
  23. gun_type=raw_input()
  24. os.system("cls")# Clearing the screen
  25.  
  26. print("Please enter your playthrough mode: (TVHM/Normal/UVHM)")
  27. playthrough=raw_input()
  28. os.system("cls")
  29.  
  30. print("Please enter the base gun damage: ")
  31. final_base_damage=raw_input()
  32. os.system("cls")
  33.  
  34. print("Please enter the elemental multiplier: (without the percentage sign)")
  35. element_mult=float(raw_input())/100
  36. os.system("cls")
  37.  
  38. #print("Please enter the elemental relic value: (without the percentage sign)")
  39.  
  40.  
  41. get_vars()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement