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
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
Loads 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.
Optional
sessionData: SessionSaveDataOptional
initialStarterData: 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
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
Adds 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.