PrivatedefaultAdds a candy to the player's game data for a given PokemonSpecies.
Will do nothing if the player does not have the Pokemon owned in their system save data.
Delete the session data at the given slot when overwriting a save file
For deleting the session of a finished run, use tryClearSession
the slot to clear
Promise with result true if the session was deleted successfully, false otherwise
Retrieves current run history data, organized by time stamp. At the moment, only retrievable from locale cache
OptionaldexEntry: DexEntryOptionalabilityAttr: numberIncrease the number of classic ribbons won with this species.
The species to increment the ribbon count for
If true, will increment the ribbon count for the root species of the given species
The number of classic wins after incrementing.
PrivateinitPrivateinitInitialize system data after it has been parsed from JSON.
The parsed SystemSaveData to initialize from
PrivateinitOptionalcachedSystemDataStr: stringReturn whether the root species of a given PokemonSpecies has been unlocked in the dex
Checks if an Unlockable has been unlocked.
The Unlockable to check
true if the player has unlocked this Unlockable or an override has enabled it
PrivateloadLoads the mapping configurations from localStorage and injects them into the input controller.
true if the configurations are successfully loaded and injected; false if no configurations are found in localStorage.
This method checks if the 'mappingConfigs' entry exists in localStorage. If it does not exist, the method returns false.
If 'mappingConfigs' exists, it parses the configurations and injects each configuration into the input controller
for the corresponding gamepad or device key. The method then returns true to indicate success.
OptionalsessionData: SessionSaveDataPrivateloadLoads Settings from local storage if available
true if succesful, false if not
OptionalinitialStarterData: StarterDataSaves a gamepad setting to localStorage.
The gamepad setting to save.
The index of the value to set for the gamepad setting.
true if the setting is successfully saved.
This method initializes an empty object for gamepad settings if none exist in localStorage.
It then updates the setting in the current scene and iterates over the default gamepad settings
to update the specified setting with the new value. Finally, it saves the updated settings back
to localStorage and returns true to indicate success.
Saves the mapping configurations for a specified device.
The name of the device for which the configurations are being saved.
The configuration object containing custom mapping details.
true if the configurations are successfully saved.
Saves a new entry to Run History
Saves a setting to localStorage
string ideally of SettingKeys
index of the setting's option
true
Default true. If true, will display message for unlocked egg move
Default false. If true, will change message from "X Egg Move Unlocked!" to "Bulbasaur X Egg Move Unlocked!"
true if Pokemon catch unlocked a new starter, false if Pokemon catch did not unlock a starter
Attempt to clear session data after the end of a run
After session data is removed, attempt to update user info so the menu updates
To delete an unfinished run instead, use deleteSession
Unlocks the given Nature for a PokemonSpecies and its prevolutions.
Will fail silently if root species has not been unlocked
StaticfromThe raw JSON string of the SystemSaveData
GameData instance initialized with the parsed SystemSaveDataStaticparse
If true, will skip initialization of fields that are normally randomized on new game start. Used for the admin panel; default
false