Skip to content

Commit

Permalink
Add option to unlock all implants
Browse files Browse the repository at this point in the history
  • Loading branch information
Aholicknight committed Dec 3, 2023
1 parent b662f4e commit 9387e23
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions save-editor.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import os
import datetime
import time
import json
import colorama
from colorama import Fore, Back, Style

colorama.init()

save_file_path = os.path.expandvars(r"%APPDATA%\Godot\app_userdata\Cruelty Squad\savegame.save") # Default save file path
stocks_file_path = os.path.expandvars(r"%APPDATA%\Godot\app_userdata\Cruelty Squad\stocks.save") # Default stocks file path

def load_save_file():
global save_file_path
Expand Down Expand Up @@ -97,7 +99,8 @@ def main():
print("4) Edit Difficulty")
print("5) Change Life/Death Symbol")
print("6) Load/Backup Current Save File")
print("7) Exit")
print("7) Unlock all implants")
print("8) Exit")

choice = input("Enter your choice: ")

Expand Down Expand Up @@ -192,12 +195,40 @@ def main():
elif operation_choice == "2":
with open(backup_file_path, 'r') as backup: data = backup.read()
with open(save_file_path, 'w') as original: original.write(data)
print("Backup loaded.")
print("Backup loaded. Going back to main menu...")
# wait 2 seconds before going back to main menu to print stats
time.sleep(2)
clear_console()
print_status(save_data)
else:
clear_console()
print_status(save_data)

elif choice == "7":
all_implants = [
"Nightmare Vision Goggles", "First Aid Kit", "Zoom N Go Bionic Eyes",
"Zomy X-200 Portable Cassette Player", "Vertical Entry Device",
"CSIJ Level IV Body Armor", "CSIJ Level III Body Armor",
"Speed Enhancer Gland", "CSIJ Level II Body Armor", "Life Sensor",
"Grappendix", "Speed Enhancer Total Organ Package", "Biothruster",
"Load Bearing Vest", "Tactical Blast Shield", "Composite Helmet",
"Icaros Machine", "Flechette Grenade", "Night Vision Goggles",
"Stealth Suit", "Cursed Torch", "HE Grenade", "Cortical Scaledown+",
"Hazmat Suit", "Tattered Rain Hat", "Holy Scope", "Abominator",
"Eyes of Corporate Insight", "Military Camouflage", "Extravagant Suit",
"ZZzzz Special Sedative Grenade", "Augmented arms", "Pneumatic Legs",
"Alien Leg Wetware", "Ammunition Gland", "Angular Advantage Tactical Munitions",
"Skullgun", "House", "CSIJ Level VI Golem Exosystem", "Goo Overdrive",
"Gunkboosters", "CSIJ Level V Biosuit", "CSIJ Level IIB Body Armor",
"Funkgrunters", "Microbial Oil Secretion Glands", "Biojet",
"Speed Enhancer Node Cluster", "Bouncy Suit", "Flowerchute"
]

save_data["implants_unlocked"] = all_implants
save_save_file(save_data)
print("All implants unlocked.")
clear_console()
print_status(save_data)
elif choice == "8":
break

else:
Expand Down

0 comments on commit 9387e23

Please sign in to comment.