5
edits
(→Pokémon catch rates: fixed GBA catch rates.) |
mNo edit summary |
||
Line 6: | Line 6: | ||
'''''Chance''' = floor (((( '''TotalHP''' * 4 ) - ( '''CurrentHP''' * 2 )) * '''CatchRate''' ) / '''TotalHP''' ) + '''Status''' + 1'' | '''''Chance''' = floor (((( '''TotalHP''' * 4 ) - ( '''CurrentHP''' * 2 )) * '''CatchRate''' ) / '''TotalHP''' ) + '''Status''' + 1'' | ||
'''Note:''' ''floor'' means to make the number an integer by rounding downwards, i.e. even ''floor(1. | '''Note:''' ''floor'' means to make the number an integer by rounding downwards, i.e. even ''floor(1.999)'' would be equal to 1. | ||
'''CurrentHP''' is either the wild Pokémon's current HP, or if its current HP is greater than 255, use ''floor ( '''CurrentHP''' / 4)''. | '''CurrentHP''' is either the wild Pokémon's current HP, or if its current HP is greater than 255, use ''floor ( '''CurrentHP''' / 4)''. |
edits