From Data Crystal
Stadium critical hit calculation?
I'm not the best at assembly, but reading through this I think I found some inaccuracies? (or at least some stuff that doesn't match up with the formula?)
- What is going on/what are the differences between what happens at the three sections titled "Critical Hit", "¡Un Golpe Crítico!", and "Critical Hit calculation"? I have no idea what's going on in the first one, and the last two both seem responsible for calculating the ratio together.
- For a regular move (no Focus Energy), tracing the assembly starting at "¡Un Golpe Crítico!", what is the "If A0 ≠ 1, jump to 0x35C52C" line responsible for? Later, it looks like "BEQ R0, R0, $0035C558" is always true (since zero = zero) which means that a chunk of code below it is always skipped? This would throw off the BaseSpeed + 76 >> 2 formula.
- Which lines are ultimately responsible for manipulating the critical hit rate, for the normal case, Focus Energy case, high critical-hit ratio case, and both Focus Energy+high crit ratio together case? How much does using a high critical hit ratio increase the probability of landing a CH?