LegoFigure11 / swsh-overworld-rng-gui

GNU General Public License v3.0
28 stars 13 forks source link

Documentation for Spawn Rate Modifying Conditions #40

Open Lusamine opened 1 year ago

Lusamine commented 1 year ago

I documented the various spawn rate modifying conditions in SWSH, such as type-pulling abilities, Pokédex recommendations, and KO to respawn a Pokémon.

I noted the method used by the game to determine the chance of a hidden encounter spawning, but the issue seems to be that even if a spawn succeeds, the game can try up to 10 times to place it and fail. The placement part needs more research.

I submit this in case any part of it is useful to implement: https://gist.github.com/Lusamine/09618e2ccf1f409da1338c13e0e32dc4

Please let me know of any errors or additions.

Lincoln-LM commented 1 year ago

Additional info on hidden encounter generation (particularly how placement is decided) is documented here: https://gist.github.com/Lincoln-LM/28aa7865ae4ff738ab2a7feae3fba65c

The main takeaway is that placement is attempted up to 10 times after the information of the pokemon itself is generated and there is what seems to be a 30% chance (rand(100) < 30) to throw away the hidden encounter even after that succeeds.