Skip to content

Commit e3b4741

Browse files
committed
Refactor life/death symbol color logic
1 parent 66684f6 commit e3b4741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

save-editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ def print_status(save_data):
5050
break
5151

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

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

6262
def clear_console():

0 commit comments

Comments
 (0)