add turns to player
This commit is contained in:
parent
211ebe1084
commit
b70f8d11f7
@ -27,7 +27,7 @@ drone = Drone
|
||||
drone.money = 0
|
||||
player = Player
|
||||
player.name = "Jake"
|
||||
player.turns = 1
|
||||
player.turns = 6
|
||||
|
||||
|
||||
def scan_system():
|
||||
@ -98,12 +98,15 @@ def mainMenu():
|
||||
|
||||
while True:
|
||||
mainMenu()
|
||||
repl = input(f"{player.name} | Cedits: {drone.money} >> ")
|
||||
|
||||
repl = input(f"{player.name} | Turns: {player.turns} | Cedits: {drone.money} >> ")
|
||||
if repl == "c":
|
||||
drone.check_drone()
|
||||
elif repl == "s":
|
||||
scan_system()
|
||||
if player.turns > 0:
|
||||
player.turns = player.turns -1
|
||||
scan_system()
|
||||
else:
|
||||
print("You are out of turns")
|
||||
elif repl == "q":
|
||||
quit()
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user