2021-12-06 21:08:05 -07:00
|
|
|
#!/usr/bin/python3.10
|
|
|
|
|
|
|
|
import random
|
|
|
|
|
|
|
|
|
|
|
|
maxRoll = 1000
|
|
|
|
class Drone:
|
|
|
|
def __init__(self, money,name):
|
|
|
|
self.money = money
|
|
|
|
self.name = name
|
|
|
|
|
|
|
|
def check_drone():
|
|
|
|
print("DRONG STATUS")
|
|
|
|
print(f"Credits: {Drone.money}")
|
|
|
|
print("Station: Ass")
|
|
|
|
|
2021-12-17 21:41:49 -07:00
|
|
|
|
|
|
|
class Player:
|
|
|
|
def __init__(self, character, name, turns):
|
|
|
|
self.character = character
|
|
|
|
self.name = name
|
|
|
|
self.turns = turns
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-06 21:08:05 -07:00
|
|
|
drone = Drone
|
|
|
|
drone.money = 0
|
2021-12-17 21:41:49 -07:00
|
|
|
player = Player
|
|
|
|
player.name = "Jake"
|
|
|
|
player.turns = 1
|
|
|
|
|
|
|
|
|
2021-12-06 21:08:05 -07:00
|
|
|
def scan_system():
|
|
|
|
roll = random.randrange(1, maxRoll)
|
|
|
|
print(roll)
|
|
|
|
|
|
|
|
if roll < 20:
|
|
|
|
print("Nothing of value was found...")
|
|
|
|
elif roll > 20 and roll < 30:
|
|
|
|
print("You find a rock and get 3 credits")
|
|
|
|
drone.money = drone.money +3
|
|
|
|
elif roll > 30 and roll < 50:
|
|
|
|
print("You find a gem and make 20 credits")
|
|
|
|
drone.money = drone.money +20
|
|
|
|
elif roll > 50 and roll < 60:
|
|
|
|
print("You find nothing of value...")
|
|
|
|
elif roll > 60 and roll < 80:
|
|
|
|
print("You find a missle shell and make 100 credits!")
|
|
|
|
drone.money = drone.money +100
|
|
|
|
elif roll > 80 and roll < 90:
|
|
|
|
print("You find a shoe and make 32 credits!")
|
|
|
|
elif roll > 90 and roll < 99:
|
|
|
|
print("You find a pebble and make 15 credits")
|
|
|
|
drone.money = drone.money +15
|
|
|
|
elif roll == 100:
|
|
|
|
print("You find gold and make 200 credits")
|
|
|
|
drone.money = drone.money +200
|
|
|
|
elif roll >= 100 and roll < 300:
|
|
|
|
print("You find nothing")
|
|
|
|
elif roll >= 300 and roll < 350:
|
|
|
|
print("You find nothing")
|
|
|
|
elif roll >= 350 and roll < 400:
|
|
|
|
print("You find an apple and sell it for 5 credits")
|
|
|
|
drone.money = drone.money +5
|
|
|
|
elif roll >= 400 and roll < 420:
|
|
|
|
print("You find a guitar and sell it for 1.2k credits")
|
|
|
|
drone.money = drone.money +1200
|
|
|
|
elif roll >= 420 and roll < 500:
|
|
|
|
print("You find a miniture dildo and sell it for 1 credits")
|
|
|
|
drone.money = drone.money +1
|
|
|
|
elif roll >= 500 and roll < 505:
|
|
|
|
print("You find a crashed ship and sell it's scrap for 300k credits")
|
|
|
|
drone.money = drone.money +300000
|
|
|
|
elif roll >= 505 and roll < 600:
|
|
|
|
print("You find nothing")
|
|
|
|
elif roll >= 600 and roll < 700:
|
|
|
|
print("You are attacked by a pirate and lose 100 credits")
|
|
|
|
drone.money = drone.money -100
|
|
|
|
elif roll >= 700 and roll < 702:
|
|
|
|
print("You find a slave and sell it for 500000")
|
|
|
|
drone.money = drone.money +500000
|
|
|
|
elif roll >= 702 and roll < 800:
|
|
|
|
print("You find nothing")
|
|
|
|
elif roll >= 800 and roll < 900:
|
|
|
|
print("You find nothing")
|
|
|
|
elif roll >= 900 and roll < 950:
|
|
|
|
print("You find 100 credits")
|
|
|
|
drone.money = drone.money +100
|
|
|
|
elif roll >= 950 and roll <=1000:
|
|
|
|
print("You lose 300 credits")
|
|
|
|
drone.money = drone.money -300
|
|
|
|
|
|
|
|
|
|
|
|
def mainMenu():
|
|
|
|
print("c) Check Drone")
|
2021-12-17 21:31:39 -07:00
|
|
|
print("s} Scan System")
|
2021-12-06 21:08:05 -07:00
|
|
|
|
|
|
|
while True:
|
|
|
|
mainMenu()
|
2021-12-17 21:41:49 -07:00
|
|
|
repl = input(f"{player.name} | Cedits: {drone.money} >> ")
|
2021-12-06 21:08:05 -07:00
|
|
|
|
|
|
|
if repl == "c":
|
|
|
|
drone.check_drone()
|
2021-12-17 21:31:39 -07:00
|
|
|
elif repl == "s":
|
2021-12-06 21:08:05 -07:00
|
|
|
scan_system()
|
|
|
|
elif repl == "q":
|
|
|
|
quit()
|
|
|
|
else:
|
|
|
|
print("Not a command, bitch")
|
|
|
|
|