Consistent constants for radio data table sizes (could still be better)

This commit is contained in:
Rangi
2020-08-13 13:47:50 -04:00
parent f65448a4c0
commit 7729dcd204
6 changed files with 24 additions and 18 deletions

View File

@@ -194,10 +194,10 @@ OaksPKMNTalk4:
; Choose a random route, and a random Pokemon from that route.
.sample
call Random
and %11111
cp (OaksPKMNTalkRoutes.End - OaksPKMNTalkRoutes) / 2
and %11111 ; maskbits NUM_OAKS_POKEMON_TALK_ROUTES would be more efficient
cp NUM_OAKS_POKEMON_TALK_ROUTES
jr nc, .sample
; We now have a number between 0 and 14.
; We now have a number between 0 and NUM_OAKS_POKEMON_TALK_ROUTES - 1.
ld hl, OaksPKMNTalkRoutes
ld c, a
ld b, 0