Jump to content

Focus Energy glitch: Difference between revisions

m
→‎Ambiguity: Fixed spelling.
(Rewrote the introduction and added the "Ambiguity" section)
m (→‎Ambiguity: Fixed spelling.)
Line 32:
However, as alluded to by Wack0's comments above, there is no really easy way to fix the above code to fit the first theory: The value in 'b' would need to be shifted left ''three'' times so that it is multiplied by 8, compared to 2 in the normal case, and care must be taken to prevent overflow. On the other hand, in order to fit the second theory, the "jr nz, .focusEnergyUsed" simply needs to be changed to "jr z, .focusEnergyUsed" (notice that the names of labels are added by people documenting the assembly according to functionality, and do not reflect anything official).
 
{{Stadium}} changed the critical hit rate formula to a "flaterflatter" formula affected less by the base speed: <code>(BaseSpeed + 76) / 1024</code> without Focus Energy and <code>(BaseSpeed + 236) / 512</code> with Focus Energy. While the resulting values are closer to what would be predicted by the first theory, the divisors seem closer to the second theory. Generation II changed the base critical hit rate again to a flat value of 1/16, which would be equivalent to a very slow (base speed 32, slightly faster than Snorlax) Pokémon in the first theory, and a very fast (base speed 128, slightly slower than Jolteon) in the second theory, so again, it could go either way.
 
== References ==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.