Skip to content

Commit 1b39c37

Browse files
committed
Add display of current stocks owned
1 parent d8f77f2 commit 1b39c37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

save-editor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,15 @@ def print_status(save_data):
8282

8383
life_death_symbol = "LIFE" if not save_data.get("death") else "DEATH"
8484
symbol_color = Fore.GREEN if life_death_symbol == "LIFE" else Fore.RED
85+
stocks_data = load_stocks_file()
8586

8687
print("Cruelty Squad Save Editor created by Aholicknight")
8788
print("Current Levels Unlocked:", Fore.RED + str(levels_unlocked) + Style.RESET_ALL)
8889
print("Number of Weapons Unlocked:", Fore.RED + str(weapons_unlocked) + Style.RESET_ALL)
8990
print("Current Money:", Fore.GREEN + str(money) + Style.RESET_ALL)
91+
if stocks_data is not None:
92+
owned_stocks_str = ", ".join([f"{ticker.strip()} ({Fore.GREEN}{stocks_data[ticker]['owned']}{Style.RESET_ALL})" for ticker in stocks_data if isinstance(stocks_data[ticker], dict) and 'owned' in stocks_data[ticker] and stocks_data[ticker]['owned'] > 0])
93+
print(f"Current Stocks Owned: {owned_stocks_str}")
9094
print("Current Implants Unlocked:", Fore.RED + str(len(implants_unlocked)) + Style.RESET_ALL)
9195
print("Current Difficulty:", Fore.RED + str(current_difficulty) + Style.RESET_ALL)
9296
print("Current Life/Death Symbol:", symbol_color + str(life_death_symbol) + Style.RESET_ALL)

0 commit comments

Comments
 (0)