You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use more assertions to ensure correct code and data
This commit is contained in:
@@ -334,6 +334,7 @@ OaksPKMNTalk8:
|
||||
; so no need for a retry loop
|
||||
call Random
|
||||
maskbits NUM_OAKS_POKEMON_TALK_ADVERBS
|
||||
assert_power_of_2 NUM_OAKS_POKEMON_TALK_ADVERBS
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .Adverbs
|
||||
@@ -433,6 +434,7 @@ OaksPKMNTalk9:
|
||||
; so no need for a retry loop
|
||||
call Random
|
||||
maskbits NUM_OAKS_POKEMON_TALK_ADJECTIVES
|
||||
assert_power_of_2 NUM_OAKS_POKEMON_TALK_ADJECTIVES
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .Adjectives
|
||||
@@ -1130,6 +1132,7 @@ PeoplePlaces5:
|
||||
; so no need for a retry loop
|
||||
call Random
|
||||
maskbits NUM_PNP_PEOPLE_ADJECTIVES
|
||||
assert_power_of_2 NUM_PNP_PEOPLE_ADJECTIVES
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .Adjectives
|
||||
@@ -1263,6 +1266,7 @@ PeoplePlaces7:
|
||||
; so no need for a retry loop
|
||||
call Random
|
||||
maskbits NUM_PNP_PLACES_ADJECTIVES
|
||||
assert_power_of_2 NUM_PNP_PLACES_ADJECTIVES
|
||||
ld e, a
|
||||
ld d, 0
|
||||
ld hl, .Adjectives
|
||||
|
Reference in New Issue
Block a user