Skip to content

Commit

Permalink
Refactor life/death symbol color logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Aholicknight committed Nov 19, 2023
1 parent 66684f6 commit e3b4741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion save-editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def print_status(save_data):
break

life_death_symbol = "LIFE" if not save_data.get("death") else "DEATH"
symbol_color = Fore.GREEN if life_death_symbol == "LIFE" else Fore.RED

print("Cruelty Squad Save Editor")
print("Current Levels Unlocked:", Fore.RED + str(levels_unlocked) + Style.RESET_ALL)
print("Number of Weapons Unlocked:", Fore.RED + str(weapons_unlocked) + Style.RESET_ALL)
print("Current Money:", Fore.GREEN + str(money) + Style.RESET_ALL)
print("Current Difficulty:", Fore.RED + str(current_difficulty) + Style.RESET_ALL)
symbol_color = Fore.GREEN if life_death_symbol == "LIFE" else Fore.RED
print("Current Life/Death Symbol:", symbol_color + str(life_death_symbol) + Style.RESET_ALL)

def clear_console():
Expand Down

0 comments on commit e3b4741

Please sign in to comment.