EditJson class provides static methods to modify decrypted Phasmophobia save files, enabling various game modifications like unlocking items, maxing inventory, and editing player stats.
Namespace
Methods
All methods arestatic and modify the global Globals.DecryptedText variable with the updated JSON.
UnlockAllTier3()
Unlocks all Tier 2 and Tier 3 items in the game.The decrypted save file JSON string.
void - Updates Globals.DecryptedText with modified JSON.
Behavior:
- Searches for properties containing:
"TierTwoUnlockOwned"(case-insensitive)"tierTwoUnlockOwned"(case-insensitive)"tierThreeUnlocked"(case-insensitive)"TierThreeUnlockOwned"(case-insensitive)
- Sets all matching boolean properties to
true - Prints each updated property to console
MaxItems()
Sets all inventory items to maximum quantity (999).The decrypted save file JSON string.
string - The modified JSON (also updates Globals.DecryptedText).
Behavior:
- Searches for properties containing
"Inventory"(case-insensitive) - Sets all matching integer properties to
999 - Prints each updated property to console
This method returns the modified JSON string, unlike other methods in this class.
EditMoney()
Sets the player’s money to a specific amount.The decrypted save file JSON string.
The desired money amount (can be any integer value).
void - Updates Globals.DecryptedText with modified JSON.
Behavior:
- Searches for the
"PlayersMoney"property (case-insensitive exact match) - Sets the integer value to the specified amount
- Prints the update to console
InfinityXp()
Sets the player’s experience points to a specific amount.The decrypted save file JSON string.
The desired XP amount (can be any integer value).
void - Updates Globals.DecryptedText with modified JSON.
Behavior:
- Searches for the
"Experience"property (case-insensitive exact match) - Sets the integer value to the specified amount
- Prints the update to console
Combined Usage
All methods can be chained to apply multiple modifications:JSON Property Format
All methods expect properties in this format:__type field before modifying the value field.
Dependencies
Newtonsoft.Json.Linq- For JSON parsing and manipulationPhasmoDecrypt.Globals- For storing the modified DecryptedText
Source Reference
See the full implementation:/workspace/source/Classes/EditJson.cs:12-99