fondly remembering the video i saw by someone who knows a lot about pokemon and less about computers, that said "if a stat reaches 8192 or higher, it automatically has 8192 subtracted from it. i believe this is done to prevent an overflow error"

stupid question 

@monorail 8192, that's 2**13, right? I would assume the Game Boy hardware doesn't work with 13-bit numbers, so how does the wrap-around (I assume) happen at 8192 and not either 256 or 2**16?

Follow

re: stupid question 

@vaporeon_ @monorail I'm looking into this and this seems to be related to how Pokemon games, starting from Black and White, calculate speed if the move "Trick Room" is used, which inverts turn order so that slow pokemon go first.

Specifically, the game subtracts the speed stat from 10000 and if the number is above 8191, it then subtracts 8192 from that number to get the new "Trick Room"ed speed

This means that if your speed stat is at least 1809, then after Trick Room is applied, the 8192 penalty is not applied. This means pokemon can be so fast they simply overpower Trick Room against slow pokemon

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.