smogon / pokemon-showdown

Pokémon battle simulator.
https://pokemonshowdown.com
MIT License
4.64k stars 2.71k forks source link

Correctly Implementing Generation 1 Sleep Mechanics #10363

Closed InAShellnut closed 4 days ago

InAShellnut commented 1 week ago

Currently Showdown determines how many turns a Pokemon should be put to sleep in Generation 1 by generating a random number between 1 and 7, with a uniform distribution. However, this is incorrect, it should be a 25% chance to put the opposing Pokemon to sleep for 1 turn and a 12.5% chance for all other RNG rolls.

Further information and an explanation of why can be found in this thread: https://www.smogon.com/forums/threads/new-rby-sleep-mechanics-discovery.3745689/

InAShellnut commented 1 week ago

Addendum: After prompting by Isa, I looked into it and apparently a similar thing affects GSC, however instead it's a 1/4 chance for both 1 and 4 turn sleeps (all other values occur 1/8th of the time as in RBY).

Zarel commented 1 week ago

Addendum: After prompting by Isa, I looked into it and apparently a similar thing affects GSC, however instead it's a 1/4 chance for both 1 and 4 turn sleeps (all other values occur 1/8th of the time as in RBY).

It looks like this hasn't been implemented yet. Would you like to implement that in this PR?

Marty-D commented 4 days ago

This was fake news; see the linked thread for elaboration.