Advertisement
Guest User

Raid Calculator Rust

a guest
Oct 31st, 2019
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.56 KB | None | 0 0
  1. import os
  2.  
  3. os.system("cls")
  4.  
  5.                                                                                                                                
  6.                                                                                                                                
  7.                                                                                                                                
  8.  
  9. def main():
  10.     restart = 0
  11.     loop = 1
  12.     while loop == 1:
  13.         print("""  \u001b[31;1m /$$$$$$$            /$$       /$$        /$$$$$$            /$$                     /$$             /$$                        
  14. | $$__  $$          |__/      | $$       /$$__  $$          | $$                    | $$            | $$                        
  15. | $$  \ $$  /$$$$$$  /$$  /$$$$$$$      | $$  \__/  /$$$$$$ | $$  /$$$$$$$ /$$   /$$| $$  /$$$$$$  /$$$$$$    /$$$$$$   /$$$$$$
  16. | $$$$$$$/ |____  $$| $$ /$$__  $$      | $$       |____  $$| $$ /$$_____/| $$  | $$| $$ |____  $$|_  $$_/   /$$__  $$ /$$__  $$
  17. | $$__  $$  /$$$$$$$| $$| $$  | $$      | $$        /$$$$$$$| $$| $$      | $$  | $$| $$  /$$$$$$$  | $$    | $$  \ $$| $$  \__/
  18. | $$  \ $$ /$$__  $$| $$| $$  | $$      | $$    $$ /$$__  $$| $$| $$      | $$  | $$| $$ /$$__  $$  | $$ /$$| $$  | $$| $$      
  19. | $$  | $$|  $$$$$$$| $$|  $$$$$$$      |  $$$$$$/|  $$$$$$$| $$|  $$$$$$$|  $$$$$$/| $$|  $$$$$$$  |  $$$$/|  $$$$$$/| $$      
  20. |__/  |__/ \_______/|__/ \_______/       \______/  \_______/|__/ \_______/ \______/ |__/ \_______/   \___/   \______/ |__/      
  21. """)
  22. # Telling You Code Names :
  23.         print (" \u001b[31;1m Explosive Ammo = EA ")
  24.         print (" \u001b[31;1m Rocket = R ")
  25.         print (" \u001b[31;1m C4 = C4 ")
  26.         print (" \u001b[31;1m Satchel = ST ")
  27.         print (" \u001b[31;1m Beancan = BC \u001b[37m")
  28. # Setting The Values :
  29.         EA = (50)
  30.         R = (1400)
  31.         C4 = (2200)
  32.         ST = (480)
  33.         BC = (120)
  34. # Ask What They Want To Craft :
  35.         wt = input("What Do You Want To Craft ? : ")
  36. # Ask How Many :
  37.         hm = int(input("How many ? : "))
  38.         os.system("cls")
  39. # Checking What They Want To Craft And Doing The Math :
  40.         if wt == "EA":
  41.             ans = EA * hm / 2
  42.             ans = int(ans)
  43.             os.system("cls")
  44.             print("\u001b[31;1m",ans,"Sulpur to craft !","\u001b[37m")
  45.         if wt == "R":
  46.             ans = R * hm
  47.             ans = int(ans)
  48.             os.system("cls")
  49.             print("\u001b[31;1m",ans,"Sulpur to craft !","\u001b[37m")
  50.         if wt == "C4":
  51.             ans = C4 * hm
  52.             ans = int(ans)
  53.             os.system("cls")
  54.             print("\u001b[31;1m",ans,"Sulpur to craft !","\u001b[37m")
  55.         if wt == "ST":
  56.             ans = ST * hm
  57.             ans = int(ans)
  58.             os.system("cls")
  59.             print("\u001b[31;1m",ans,"Sulpur to craft !","\u001b[37m")
  60.         if wt == "BC":
  61.             ans = BC * hm
  62.             ans = int(ans)
  63.             os.system("cls")
  64.             print("\u001b[31;1m",ans,"Sulpur to craft !","\u001b[37m")
  65. # This Is Asking If They Want It To Be Converted To Gun Powder
  66.         gp = input("Do You Want That In GP ? (Y or N) : ")
  67.         if gp == "Y":
  68.             ans = ans / 2
  69.             print("\u001b[31;1m",ans,"Gunpowder to craft !","\u001b[37m")
  70.             restart = input("Do You Want To Continue ? (Y or N) : ")
  71.         elif gp == "N":
  72.             restart = input("Do You Want To Continue ? (Y or N) : ")
  73.         if restart == "Y":
  74.             os.system("cls")
  75.             main()
  76.         else:
  77.             loop = 0
  78. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement