Commit 4fdf2c51 authored by Reece's avatar Reece

A lot of changes

- Changed some spelling.
- Changed prices
- Added daily random outcomes
- Added penalties and income at the end of travel
- Added more dialog
parent 153530be
......@@ -20,24 +20,30 @@ route = ["route 1", "route 2"]
# Integers #
###############################################################################################
bankbal = 0
insurancevalue = 0
insurancevalue = 0
contract = 0
payoutloss = 0
################################################################################################
# Routes #
################################################################################################
route1 = 0
route2 = 0
Routes = [
['Roswyth Docks - Aberdeen', 'Port of Gothenburg - Sweden', 3, 200000],
['Scotland -> France', '7 days', 10000, 'I went to France once, but it wasn\'t for me. Anyway that doesn\'t matter, pretty simple one this run, just get to France in 7 days and get paid.'],
['Scotland -> Portugal', 'dunno', 75000, 'Easy enough, just be careful the sea can get a bit rough.']
]
['Roswyth Docks - Aberdeen', 'Port of Gothenburg - Sweden', 3, 100000],
['Scotland -> France', '7 days', 50000, 'I went to France once, but it wasn\'t for me. Anyway that doesn\'t matter, pretty simple one this run, just get to France in 7 days and get paid.'],
['Scotland -> Portugal', 'dunno', 75000, 'Easy enough, just be careful the sea can get a bit rough.']
]
Outcomes = [
[]
]
# ['Weather', 'Type of outcome ( 0 - None, 1 - Low, 2 - Average, 3 - Severe )', 'Details#1', 'Details#2', 'Details#2', 'money'],
['Fair', 0, 'Sea is clear today Captain, smooth sailing ahead!', 'If the weather stays like this, we will arrive on time!', 'I\'ve never seen the sea so calm!', 0],
['Overcast', 0, 'I heard it rains if you look at grey clouds, let\'s hope that isn\'t not true!', '', '', 0],
['Slow rain', 0, 'Don\'t mind me Captain, just putting on my coat.', '', '', 0],
['Windy', 1, 'Seems to be a slight breeze, I wouldn\'t worry about it too much.', 'The ship is rocking a little, I hope the cargo is secure.', 'Windy isn\'t too dangerous right?', 1000],
['Weather', 1, 'Dialog', 'Dialog', 'Dialog', 2500],
['Weather', 2, 'Dialog', 'Dialog', 'Dialog', 5000],
['Weather', 2, 'Dialog', 'Dialog', 'Dialog', 7500],
['Weather', 3, 'Dialog', 'Dialog', 'Dialog', 10000]
]
# Start of the game.
# Player will set up their company, picking difficulty and insurance.
......@@ -73,13 +79,13 @@ input("Press 'Enter' to continue\n")
clear()
response1 = ""
while response1.lower() not in cash:
response1 = input("Now Captain " + playername + ", the money needs to be discussed.\n£2,000,000 (Easy)\n£1,000,000 (Normal)\n£500,000 (Hard)\nHow much would you like to borrow to get you started?\n\neasy/normal/hard\n").lower()
response1 = input("Now Captain " + playername + ", the money needs to be discussed.\n£1,000,000 (Easy)\n£500,000 (Normal)\n£100,000 (Hard)\nHow much would you like to borrow to get you started?\n\nEasy/Normal/Hard\n").lower()
if response1 == "easy":
bankbal = 2000000
elif response1 == "normal":
bankbal = 1000000
elif response1 == "hard":
elif response1 == "normal":
bankbal = 500000
elif response1 == "hard":
bankbal = 100000
else:
print("Sorry Captain " + playername + ", I'm not sure what you said there, please try again.\n");
......@@ -127,21 +133,21 @@ print("--- Summary ---\nCompany name: " + companyName + "\nBank Balance: £", ba
response3 = ""
while response3 not in firstcontract:
response3 = input("Good Morning captain we have 3 contracts available for you to carry out. Please take a look....\n\nCONTRACT 1 ~ COST: £200,000 ~ PAYOUT ~ £1,000,000 ~\n-Cargo in excess of £10,000,000\n-Scotland -> Sweden\n-3 Day limit from acceptance of contract\n\nCONTRACT 2 ~ COST:£10,000 ~ PAYOUT ~ £50,000~\n-Cargo in excess of £100,000\n-Scotland -> France\n-7 day time limit from acceptance of contract\n\nCONTRACT 3 ~ COST: :£75,000 ~ PAYOUT ~ £600,000~\n-Cargo in excess of £2,500,000\n-Scotland -> Portugal\n-5 day time limit from acceptance of contract\n\nplease pick a contract 1/2/3\n")
response3 = input("Good Morning captain we have 3 contracts available for you to carry out. Please take a look....\n\nCONTRACT 1 ~ COST: £20,000 ~ PAYOUT ~ £100,000 ~\n-Cargo in excess of £10,000,000\n-Scotland -> Sweden\n-3 Day limit from acceptance of contract\n\nCONTRACT 2 ~ COST:£10,000 ~ PAYOUT ~ £50,000~\n-Cargo in excess of £100,000\n-Scotland -> France\n-7 day time limit from acceptance of contract\n\nCONTRACT 3 ~ COST: :£15,000 ~ PAYOUT ~ £75,000~\n-Cargo in excess of £2,500,000\n-Scotland -> Portugal\n-5 day time limit from acceptance of contract\n\nplease pick a contract 1/2/3\n")
if response3 == "1":
contract = 0
bankbal = bankbal-200000
bankbal = bankbal - 20000
print("Okay Scotland to Sweden. Please be careful with this cargo its worth a lot of money and is very important. You have 3 days to get there so you may want to get a move on captain.\n")
elif response3 == "2":
contract = 1
bankbal = bankbal-10000
bankbal = bankbal - 10000
print("Scotland to France. I went to France once but it wasnt for me. Anyway that doesn't matter, pretty simple one this run just get to France in 7 days and get paid.\n")
elif response3 == "3":
contract = 2
bankbal = bankbal-75000
bankbal = bankbal - 15000
print("Scotland to Portugal, easy enough just be careful the sea can get a bit rough.\n")
else:
......@@ -150,25 +156,90 @@ while response3 not in firstcontract:
input("Press 'Enter' to continue")
######################################################################################
#DAY 1# CONTRACT 1
# Contract 1 #
######################################################################################
clear()
income = 0
payoutloss = 0
print("--- Summary ---\nCompany name: " + companyName + "\nBank balance: ", bankbal, "\nSchedule: Day of departure\nTime: 12:36pm\nWeather: Fair")
print("----------------------------------------------\nCurrent Location: " + Routes[contract][0] + "\nTarget Location: " + Routes[contract][1] + "\nContract duration:", Routes[contract][2])
print("")
print("\nDave: Okay Captain, all of the cargo has been loaded. If you\'re ready, we can set off!\n")
input("Press 'Enter' to continue")
for i in range(Routes[contract][2]):
day = i+1
print("--- Summary ---\nDay:", day, "\nTime: ", randint(1, 12), ":",
randint(1, 60), "\nCurrent Status: En-route\n-------------------------\n")
print("Trip details:\Random outcome here...")
hour = randint(1, 12)
minute = randint(1, 59)
if (hour < 10):
hour = "0" + str(hour)
if (minute < 10):
minute = "0" + str(minute)
outcome = randint(0, 7)
outcomedialog = randint(2, 4)
print("--- Summary ---\nDay:", day, "\nTime: ", hour, ":", minute, "\nWeather: " + Outcomes[outcome][0] + "\nCurrent Status: En-route\n-------------------------\n")
print("Dave: " + Outcomes[outcome][outcomedialog])
payoutloss = (payoutloss + Outcomes[outcome][5])
if (Outcomes[outcome][1] == 0):
print("Dave: We didn't have any problems today! Let\'s see what tomorrow is like..")
elif (Outcomes[outcome][1] == 1):
print("Dave: Today could have been better, I have checked our cargo and we lost £", Outcomes[outcome][5], " worth.")
elif (Outcomes[outcome][1] == 2):
print("Dave: Our client isn\'t going to be happy, we\'e lost £", Outcomes[outcome][5], " worth of cargo.")
elif (Outcomes[outcome][1] == 3):
print("Dave: I\'m suprised we are still alive, unfortunatly we have lost £", Outcomes[outcome][5], " worth of cargo. I don\'t know how you\'re going to explain this.")
input("Press 'Enter' to continue")
input("End of trip")
hour = randint(1, 12)
minute = randint(1, 59)
if (hour < 10):
hour = "0" + str(hour)
if (minute < 10):
minute = "0" + str(minute)
print("--- Summary ---\nCompany name: " + companyName + "\nBank balance: ", bankbal, "\nSchedule: Unload cargo\nTime:", hour, ":", minute, "\nWeather: Fair")
income = (Routes[contract][3] - payoutloss)
print("----------------------------------------------\nCurrent Location: " + Routes[contract][1] + "\nContract payout: ", Routes[contract][3], "\nPenalties: ", payoutloss, "\nTotal Income from Haul: ", income)
print("")
input("Press 'Enter' to continue")
if contractpicked == 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment