diff options
| author | Daniel Harding <33dannye@gmail.com> | 2020-06-23 19:06:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-23 19:06:14 -0500 |
| commit | ff927ba730e45a843c1e183b5f05646f96378af0 (patch) | |
| tree | 530f89782772bb76a76fbdd28247f1c6e3248483 /engine/battle/wild_encounters.asm | |
| parent | Merge pull request #243 from Nog-Frog/rename-unused-cd40 (diff) | |
| parent | Move more tables from engine/ to data/ (diff) | |
| download | pokeyellow-ff927ba730e45a843c1e183b5f05646f96378af0.tar.gz pokeyellow-ff927ba730e45a843c1e183b5f05646f96378af0.tar.xz pokeyellow-ff927ba730e45a843c1e183b5f05646f96378af0.zip | |
Merge pull request #250 from Rangi42/master
Move more tables from engine/ to data/
Diffstat (limited to 'engine/battle/wild_encounters.asm')
| -rw-r--r-- | engine/battle/wild_encounters.asm | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/engine/battle/wild_encounters.asm b/engine/battle/wild_encounters.asm index 231c46e7..93409051 100644 --- a/engine/battle/wild_encounters.asm +++ b/engine/battle/wild_encounters.asm @@ -101,18 +101,4 @@ TryDoWildEncounter: xor a ret -WildMonEncounterSlotChances: -; There are 10 slots for wild pokemon, and this is the table that defines how common each of -; those 10 slots is. A random number is generated and then the first byte of each pair in this -; table is compared against that random number. If the random number is less than or equal -; to the first byte, then that slot is chosen. The second byte is double the slot number. - db $32, $00 ; 51/256 = 19.9% chance of slot 0 - db $65, $02 ; 51/256 = 19.9% chance of slot 1 - db $8C, $04 ; 39/256 = 15.2% chance of slot 2 - db $A5, $06 ; 25/256 = 9.8% chance of slot 3 - db $BE, $08 ; 25/256 = 9.8% chance of slot 4 - db $D7, $0A ; 25/256 = 9.8% chance of slot 5 - db $E4, $0C ; 13/256 = 5.1% chance of slot 6 - db $F1, $0E ; 13/256 = 5.1% chance of slot 7 - db $FC, $10 ; 11/256 = 4.3% chance of slot 8 - db $FF, $12 ; 3/256 = 1.2% chance of slot 9 +INCLUDE "data/wild_probabilities.asm" |
