diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-03 11:51:00 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-03 11:51:00 -0400 |
| commit | b29e5ee203b6fa4592180ef6cca732462cca9af6 (patch) | |
| tree | 7634ed34bcc174f6df004a473b277d1cc3f8f218 /data/wild/probabilities.asm | |
| parent | Merge pull request #256 from Rangi42/master (diff) | |
| download | pokeyellow-b29e5ee203b6fa4592180ef6cca732462cca9af6.tar.gz pokeyellow-b29e5ee203b6fa4592180ef6cca732462cca9af6.tar.xz pokeyellow-b29e5ee203b6fa4592180ef6cca732462cca9af6.zip | |
Add subdirectories to data/ similar to pokecrystal
Top level text/ is now solely for the former text/maps/ files, and other files are in their respective subdirectories in data/.
Diffstat (limited to 'data/wild/probabilities.asm')
| -rw-r--r-- | data/wild/probabilities.asm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/wild/probabilities.asm b/data/wild/probabilities.asm new file mode 100644 index 00000000..9d4704c6 --- /dev/null +++ b/data/wild/probabilities.asm @@ -0,0 +1,15 @@ +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 |
