Catch rate: Difference between revisions

71 bytes removed ,  29 April 2007
→‎Catch rate formula: edited for readability
No edit summary
(→‎Catch rate formula: edited for readability)
Line 4: Line 4:




'''''Chance''' = floor ('''Poké Ball''' * (((( '''TotalHP''' * 4 ) - ( '''CurrentHP''' * 2 )) * '''CatchRate''' ) / '''TotalHP''' ) + '''Status''' + 1)''
'''C'''=1+floor(2'''B'''*'''R'''(2-'''P''')+'''S''')


'''Note:''' ''floor'' means to make the number an integer by rounding downwards, i.e. even ''floor(1.999)'' would be equal to 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)''.
'''P''' is the proportion of HP remaining: '''P'''='''CurrentHP'''/'''TotalHP'''.
 
'''CurrentHP''' is either the wild Pokémon's current HP, or if its current HP is greater than 255, use floor('''CurrentHP'''/4).


'''TotalHP''' works exactly like CurrentHP, except using the Pokémon's maximum HP value.
'''TotalHP''' works exactly like CurrentHP, except using the Pokémon's maximum HP value.


'''CatchRate''' uses the wild Pokémon's Catch Rate, found below.
'''R''' is the wild Pokémon's Catch Rate, found below.
 
'''Status''' - If the wild Pokémon is asleep or frozen, Status = 10. If it is paralyzed, poisoned, or burnt, Status = 5. Otherwise, Status = 0.


'''S''' (Status) - If the wild Pokémon is asleep or frozen, S=10. If it is paralyzed, poisoned, or burnt, S=5. Otherwise, S=0.


The chance is further modified according to the kind of Poké Ball used; for a full list see [[Poké Ball]].
The chance is further modified ('''B''') according to the kind of Poké Ball used; for a full list see [[Poké Ball]].


[[Category:Game mechanics]]
[[Category:Game mechanics]]
After all these values have been calculated, the game computes a random number anywhere from 0 to 255 inclusive. If this random number is less than the '''Chance''' calculated above, the Pokémon is caught.
After all these values have been calculated, the game computes a random number anywhere from 0 to 255 inclusive. If this random number is less than '''C''', the Pokémon is caught.


==Pokémon catch rates==
==Pokémon catch rates==
12

edits