222
edits
Line 32: | Line 32: | ||
Note that in Generation II, if 3 × HP<sub>max</sub> > 255, then both 3 × HP<sub>max</sub> and 2 × HP<sub>current</sub> are quartered (rounded down) for use in the formula; if the latter is 0, it is made to 1 instead in this case. Note that the subtraction itself may underflow, due to both values being unsigned 8-bit integers in Generation II. | Note that in Generation II, if 3 × HP<sub>max</sub> > 255, then both 3 × HP<sub>max</sub> and 2 × HP<sub>current</sub> are quartered (rounded down) for use in the formula; if the latter is 0, it is made to 1 instead in this case. Note that the subtraction itself may underflow, due to both values being unsigned 8-bit integers in Generation II. | ||
=== Generation III-IV === | ==== Generation III-IV ==== | ||
The modified catch rate, ''a'', is calculated in [[Generation III]] and [[Generation IV]] is as follows: | The modified catch rate, ''a'', is calculated in [[Generation III]] and [[Generation IV]] is as follows: | ||
edits