Compare commits
No commits in common. "2ccbaaeca570616a4ff6186a6165b9fe06723a5e" and "d17dabbb85f524520fe30d444149085f22b1f9b1" have entirely different histories.
2ccbaaeca5
...
d17dabbb85
125
data.py
125
data.py
@ -55,72 +55,65 @@ businesses = [
|
|||||||
{"pretty_name":"Midas Touch Factory", "cost":470000000000000000000,"earning":26000000000000000000,"threat":1400},#High Risk
|
{"pretty_name":"Midas Touch Factory", "cost":470000000000000000000,"earning":26000000000000000000,"threat":1400},#High Risk
|
||||||
]
|
]
|
||||||
leaderboard = [
|
leaderboard = [
|
||||||
["King Midas", 641990000000000000000000000],
|
["King Midas",641990000000000000000000000],
|
||||||
["Caishen", 742000000000000000000000],
|
["Scrooge McDuck", 18921600000000000000],
|
||||||
["Emperor Palpatine",9840000000000000000000],
|
["Rumpelstiltskin", 2910000000000000000],
|
||||||
["Scrooge McDuck", 18921600000000000000],
|
["Emperor Palpatine", 984000000000000000],
|
||||||
["Rumpelstiltskin", 2910000000000000000],
|
["Thor", 15000000000000000],
|
||||||
["The Dark Lord Sauron", 247500000000000000],
|
["Namor", 800000000000000],
|
||||||
["Thor", 15000000000000000],
|
["Plutus", 662000000000000],
|
||||||
["Durin the Deathless", 4206900000000000],
|
["Aquaman", 150000000000000],
|
||||||
["Namor", 800000000000000],
|
["Blackpanter", 90720000000000],
|
||||||
["Plutus", 662000000000000],
|
["Bruce Wayne", 30900000000000],
|
||||||
["Aquaman", 150000000000000],
|
["Tony Stark", 30000000000000],
|
||||||
["Blackpanter", 90720000000000],
|
["Augustus Caesar", 4600000000000],
|
||||||
["Bruce Wayne", 30900000000000],
|
["King Solomon", 2200000000000],
|
||||||
["Tony Stark", 30000000000000],
|
["Genghis Khan", 1300000000000],
|
||||||
["Augustus Caesar", 4600000000000],
|
["Mansa Musa", 415000000000],
|
||||||
["King Solomon", 2200000000000],
|
["Elon Musk", 342000000000],
|
||||||
["The House of Saud", 1400000000000],
|
["Jakob Fugger", 277000000000],
|
||||||
["Genghis Khan", 1300000000000],
|
["William The Conqueror", 228000000000],
|
||||||
["Prince Ali", 893000000000],
|
["Mark Zuckerburg", 216000000000],
|
||||||
["Dain II Ironfoot", 750000000000],
|
["Jeff Bezos", 215000000000],
|
||||||
["Mansa Musa", 415000000000],
|
["Alan Rufus", 195000000000],
|
||||||
["Elon Musk", 342000000000],
|
["Larry Ellison", 192000000000],
|
||||||
["Jakob Fugger", 277000000000],
|
["Bernard Arnault", 178000000000],
|
||||||
["William The Conqueror", 228000000000],
|
["Marcus Lucinius Crassus", 169800000000],
|
||||||
["Mark Zuckerburg", 216000000000],
|
["Basil II", 169400000000],
|
||||||
["Jeff Bezos", 215000000000],
|
["Warren Buffet", 154000000000],
|
||||||
["Alan Rufus", 195000000000],
|
["Frodo Baggins", 145400000000],
|
||||||
["Larry Ellison", 192000000000],
|
["Larry Page", 144000000000],
|
||||||
["Bernard Arnault", 178000000000],
|
["Sergey Brin", 138000000000],
|
||||||
["Marcus Lucinius Crassus", 169800000000],
|
["Cosimo De'Medici", 129000000000],
|
||||||
["Basil II", 169400000000],
|
["Amancio Ortega", 124000000000],
|
||||||
["Warren Buffet", 154000000000],
|
["Steve Ballmer", 118000000000],
|
||||||
["Frodo Baggins", 145400000000],
|
["Smaug", 61600000000],
|
||||||
["Larry Page", 144000000000],
|
["Princess Leia", 32125000000],
|
||||||
["Sergey Brin", 138000000000],
|
["Charles Foster Kane", 11200000000],
|
||||||
["Cosimo De'Medici", 129000000000],
|
["Steve Jobs", 10200000000],
|
||||||
["Amancio Ortega", 124000000000],
|
["Donald Trump", 10000000000],
|
||||||
["Steve Ballmer", 118000000000],
|
["George Lucas", 5500000000],
|
||||||
["Smaug", 61600000000],
|
["Montgomery Burns", 1800037022],
|
||||||
["Princess Leia", 32125000000],
|
["Taylor Swift", 1600000000],
|
||||||
["Charles Foster Kane", 11200000000],
|
["Notch", 1300000000],
|
||||||
["Steve Jobs", 10200000000],
|
["J.K. Rowling", 1000000000],
|
||||||
["Donald Trump", 10000000000],
|
["Rishi Sunak", 830000000],
|
||||||
["George Lucas", 5500000000],
|
["Harry Styles", 120000000],
|
||||||
["Montgomery Burns", 1800037022],
|
["Pewdiepie", 45000000],
|
||||||
["Taylor Swift", 1600000000],
|
["Harry Potter", 33000000],
|
||||||
["Notch", 1300000000],
|
["Joe Biden", 10000000],
|
||||||
["J.K. Rowling", 1000000000],
|
["Sir Keir Starmer", 7700000],
|
||||||
["Rishi Sunak", 830000000],
|
["Frank Abagnale Jr.", 2500000],
|
||||||
["King Charles III", 747000000],
|
["Jeremy Corbyn", 925000],
|
||||||
["Harry Styles", 120000000],
|
["Bernie Sanders", 513513],
|
||||||
["Pewdiepie", 45000000],
|
["Greta Thunberg", 100000],
|
||||||
["Harry Potter", 33000000],
|
["Luke Skywalker", 93000],
|
||||||
["Joe Biden", 10000000],
|
["Samwise Gamgee", 47100],
|
||||||
["Sir Keir Starmer", 7700000],
|
["Uncle Ben", 25400],
|
||||||
["Frank Abagnale Jr.", 2500000],
|
["Arthur and Molly Weasley", 12250],
|
||||||
["Jeremy Corbyn", 925000],
|
["Gandalf", 8102.14],
|
||||||
["Bernie Sanders", 513513],
|
["DeaDvey", 1012.12],
|
||||||
["Greta Thunberg", 100000],
|
["Peter Parker", 103.47],
|
||||||
["Luke Skywalker", 93000],
|
|
||||||
["Samwise Gamgee", 47100],
|
|
||||||
["Uncle Ben", 25400],
|
|
||||||
["Arthur and Molly Weasley", 12250],
|
|
||||||
["Gandalf", 8102.14],
|
|
||||||
["DeaDvey", 1012.12],
|
|
||||||
["Peter Parker", 103.47],
|
|
||||||
]
|
]
|
||||||
# Doesn't affect anything non visual
|
# Doesn't affect anything non visual
|
||||||
currency = "€"
|
currency = "€"
|
||||||
|
27
main.py
27
main.py
@ -124,19 +124,22 @@ def main():
|
|||||||
print(" ",end="")
|
print(" ",end="")
|
||||||
print(f"{i+1}: {data.businesses[i]['pretty_name']}: {data.currency}{millify(data.businesses[i]['cost'])}, Earning: {data.currency}{millify(data.businesses[i]['earning'])}/hour, Threat: {data.businesses[i]['threat']}%")
|
print(f"{i+1}: {data.businesses[i]['pretty_name']}: {data.currency}{millify(data.businesses[i]['cost'])}, Earning: {data.currency}{millify(data.businesses[i]['earning'])}/hour, Threat: {data.businesses[i]['threat']}%")
|
||||||
user_input = input_command()
|
user_input = input_command()
|
||||||
user_input_int = int(user_input) - 1
|
try:
|
||||||
if user_input_int == -1:
|
user_input_int = int(user_input) - 1
|
||||||
continue
|
if user_input_int == -1:
|
||||||
elif user_input_int < len(data.businesses):
|
continue
|
||||||
if save.money >= data.businesses[user_input_int]['cost']:
|
elif user_input_int < len(data.businesses):
|
||||||
print(f"Buying {data.businesses[user_input_int]['pretty_name']}")
|
if save.money >= data.businesses[user_input_int]['cost']:
|
||||||
save.businesses.append(data.businesses[user_input_int].copy())
|
print(f"Buying {data.businesses[user_input_int]['pretty_name']}")
|
||||||
save.businesses[len(save.businesses)-1]['cost'] *= 0.9 # Remove 10% of it's value so the sell price is slightly less
|
save.businesses.append(data.businesses[user_input_int])
|
||||||
save.money -= data.businesses[user_input_int]['cost']
|
save.businesses[len(save.businesses)-1]['cost'] *= 0.9 # Remove 10% of it's value so the sell price is slightly less
|
||||||
|
save.money -= data.businesses[user_input_int]['cost']
|
||||||
|
else:
|
||||||
|
print("You can't afford that!")
|
||||||
else:
|
else:
|
||||||
print("You can't afford that!")
|
print("Invalid number")
|
||||||
else:
|
except:
|
||||||
print("Invalid number")
|
print("Didn't input a number")
|
||||||
|
|
||||||
### Sell an owned business
|
### Sell an owned business
|
||||||
elif user_input.lower() == "sell":
|
elif user_input.lower() == "sell":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user