1. Welcome to Smogon! Check out the Smogon Starters Hangout for everything you need to know about starting out in the community. Don't forget to introduce yourself in the Introduction and Hangout Thread, too!
  2. Welcome to Smogon Forums! Please take a minute to read the rules.

Gen 1 Critical Hits may have been intended to happen four times less often (theory)

Discussion in 'Ruins of Alph' started by Crystal_, Dec 30, 2013.

  1. Crystal_

    Crystal_
    is a Pokemon Researcheris a Contributor Alumnusis a Past SPL Winner

    Joined:
    Dec 20, 2009
    Messages:
    902
    This is related to the famous Focus Energy glitch. I think it's interesting at the very least considering how much Critical Hits shape the RBY metagame.

    According to Bulbapedia (http://bulbapedia.bulbagarden.net/wiki/Focus_Energy_(move)), Focus Energy was intended to multiply the crit ratio by 4, but the glitch makes it be quartered instead.

    The way the Critical Hit formula is structured in the games can be summed up to something like this:

    Now, if they only made a mistake on the shift that belongs to when Focus Energy is used, we would have two left shifts and the crit chance would be the same (multiply by 2) regardless of whether Focus Energy had been used or not. This wouldn't make much sense to me, since it would mean that Focus Energy would've been intended to do... nothing.

    I used to think that they may have missed the two shifts (the one for Focus Energy used and the one for Focus Energy not used), but it looks more probable that they just missed the jumps for whatever reason. Anyway, it seems likely to me that the glitch also involved the non focus energy crit ratio, but since a higher crit ratio than intended doesn't look like a glitch, it never went noticed. Another thing to take into account is that the crit ratio was reduced in the next generation and Pokemon went to crit over less than half the times on average (6.25%).

    I made a similar thread in Pokecommunity (http://www.pokecommunity.com/showthread.php?p=7919304) but not many people replied anyway. You can find the detailed code there, but if someone in Smogon is familiar with assembly and can take hsi/her own conclusions, I'd like to hear what he/she thinks about this. In general though, I thought this was interesting enough to share considering the impact of critical hits in competitive play.
    Last edited: Dec 30, 2013
  2. Jorgen

    Jorgen World's Strongest Fairy
    is a Forum Moderator Alumnusis a Community Contributor Alumnusis a Contributor Alumnusis a Past SPL Winner

    Joined:
    Jun 5, 2010
    Messages:
    1,301
    Pokemon RBY: A case study on the horrors wrought by goto and other code jumps.
  3. Joim

    Joim Navigate the pitfalls, cross the great divide!
    is a member of the Site Staffis a Battle Server Administratoris a Programmeris an Administratoris a Tiering Contributor Alumnusis a Contributor Alumnusis a Smogon Media Contributor Alumnus

    Joined:
    Oct 9, 2012
    Messages:
    1,727
    I'll only put this here

    [​IMG]
  4. SonicJaxx

    SonicJaxx

    Joined:
    Mar 19, 2014
    Messages:
    6
    I'd say that all makes a lot of sense, good effort. Though I can't see any games of RBY being played 'as they were intended'. I think it will forever be like 'M.Bison and Balrog', people probably like it better the way it turned out.
  5. magic9mushroom

    magic9mushroom

    Joined:
    Dec 7, 2012
    Messages:
    786
    Among other things, Slowbro would jump to the top of OU and be constantly nominated for Uberhood.
  6. KingHeracrossTheBug

    KingHeracrossTheBug

    Joined:
    Jan 2, 2014
    Messages:
    975
    RBY had a lot of glitches, so it is normal

Users Viewing Thread (Users: 0, Guests: 0)