aboutsummaryrefslogtreecommitdiffstats
path: root/data/wild/probabilities.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
committerdannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
commit5647ca687b92954dcf37a6ea6bfbc9a341c32de4 (patch)
treedde1937a1bfdb3a835f4155e1c2eb8f1aaf86f63 /data/wild/probabilities.asm
parentMerge pull request #55 from Deokishisu/patch-1 (diff)
downloadpokeyellow-5647ca687b92954dcf37a6ea6bfbc9a341c32de4.tar.gz
pokeyellow-5647ca687b92954dcf37a6ea6bfbc9a341c32de4.tar.xz
pokeyellow-5647ca687b92954dcf37a6ea6bfbc9a341c32de4.zip
Sync with pokered
Diffstat (limited to 'data/wild/probabilities.asm')
-rw-r--r--data/wild/probabilities.asm15
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..2c56c6b9
--- /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 50, $00 ; 51/256 = 19.9% chance of slot 0
+ db 101, $02 ; 51/256 = 19.9% chance of slot 1
+ db 140, $04 ; 39/256 = 15.2% chance of slot 2
+ db 165, $06 ; 25/256 = 9.8% chance of slot 3
+ db 190, $08 ; 25/256 = 9.8% chance of slot 4
+ db 215, $0A ; 25/256 = 9.8% chance of slot 5
+ db 228, $0C ; 13/256 = 5.1% chance of slot 6
+ db 241, $0E ; 13/256 = 5.1% chance of slot 7
+ db 252, $10 ; 11/256 = 4.3% chance of slot 8
+ db 255, $12 ; 3/256 = 1.2% chance of slot 9