pokerogue/src/test/utils
RedstonewolfX 06331ccdf6
[Daily] Daily standardization (#3776)
* Disable Luck in Daily Runs

If the Game Mode is Daily Run, the player's Luck is set to 0, and the Luck value is hidden.

* Give free map in daily

Adds a Map to the player's pool of starting items for Daily Runs.

* Disable Eviolite in Daily Runs

Disables Eviolite spawning in Daily Run mode.

* Write shop test and add new overrides

Adds new overrides that allow you to force content to be locked or unlocked
These overrides were also added to the OverridesHelper to make them available to tests

Adds a new check function for content unlocks, which returns `true` if it is overrode to be unlocked, `false` if it is overrode to be locked, and the unlock data mapped to a Boolean otherwise

All existing checks (other than the ones that involve actually unlocking things) for unlockables have been changed to use this

Added a pair of new exporting booleans, specifically for my test, that check if Eviolite or Mini Black Hole are in the loot table

* Prevent shinies from altering runs

Places variant rolls inside of an ExecuteWithSeedOffset block, using the current floor's RNG seed as the seed and the Pokémon's ID as the offset.

---------

Co-authored-by: Leo Kim <47556641+KimJeongSun@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-09-26 01:39:59 -07:00
..
helpers [Daily] Daily standardization (#3776) 2024-09-26 01:39:59 -07:00
mocks [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
saves Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
TextInterceptor.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
errorInterceptor.ts [Improvement] Refactored Test Phase Management with Error Handling (#1962) 2024-06-08 20:54:20 +01:00
fakeMobile.html [Feature] Move touch controls configuration (Reopened) (#3256) 2024-08-10 14:17:04 +01:00
gameManager.ts [Daily] Daily standardization (#3776) 2024-09-26 01:39:59 -07:00
gameManagerUtils.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
gameWrapper.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
inputsHandler.ts [Test] Replace `doAttack()` with `move.select()` in tests (#3567) 2024-08-22 06:49:33 -07:00
phaseInterceptor.ts [Daily] Daily standardization (#3776) 2024-09-26 01:39:59 -07:00
testUtils.ts [Dev] Make `OPP_MOVESET_OVERRIDE` fully override the enemy's moveset (#4062) 2024-09-09 12:55:11 -04:00