Facebook
From 01Kiko, 4 Months ago, written in Python.
Embed
Download Paste or View Raw
Hits: 214
  1. import os
  2. import sys
  3. import json
  4.  
  5. def main():
  6.     # Load the configuration
  7.     with open("config.json", "r") as f:
  8.         config = json.load(f)
  9.  
  10.     # Set the budget to unlimited
  11.     config["budget"] = "unlimited"
  12.  
  13.     # Set the staff cost to zero
  14.     config["staffCost"] = 0
  15.  
  16.     # Set the staff slots to 99
  17.     config["staffSlots"] = 99
  18.  
  19.     # Save the configuration
  20.     with open("config.json", "w") as f:
  21.         json.dump(config, f)
  22.  
  23.     # Open the game
  24.     os.system("start ./WRC23.exe")
  25.  
  26. if __name__ == "__main__":
  27.     main()
  28.