summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-07-19 20:45:34 -0700
committerYamaArashi <shadow962@live.com>2015-07-19 20:45:34 -0700
commitdb7d941d22d89cf8d6d13cbf768208c5cf2ac2c2 (patch)
tree4dcd58e0fe7ac33bf38817f423754dc758cb902f /scripts
parent1d86932cc9c38815434409f07d14c2bfe4e7a836 (diff)
constants for flag actions
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cinnabargym.asm6
-rwxr-xr-xscripts/route23.asm6
2 files changed, 6 insertions, 6 deletions
diff --git a/scripts/cinnabargym.asm b/scripts/cinnabargym.asm
index fcafa83a..213568d5 100755
--- a/scripts/cinnabargym.asm
+++ b/scripts/cinnabargym.asm
@@ -99,7 +99,7 @@ CinnabarGymScript2: ; 757f6 (1d:57f6)
ld a, [wTrainerHeaderFlagBit]
ld [$ffdb], a
ld c, a
- ld b, $2
+ ld b, FLAG_TEST
ld hl, wd79a
call CinnabarGymScript_757f1
ld a, c
@@ -113,13 +113,13 @@ CinnabarGymScript2: ; 757f6 (1d:57f6)
ld a, [wTrainerHeaderFlagBit]
ld [$ffdb], a
ld c, a
- ld b, $1
+ ld b, FLAG_SET
ld hl, wd79a
call CinnabarGymScript_757f1
ld a, [wTrainerHeaderFlagBit]
sub $2
ld c, a
- ld b, $1
+ ld b, FLAG_SET
ld hl, wd79c
call CinnabarGymScript_757f1
call Func_3ead
diff --git a/scripts/route23.asm b/scripts/route23.asm
index a258b88a..cfcf41f5 100755
--- a/scripts/route23.asm
+++ b/scripts/route23.asm
@@ -52,7 +52,7 @@ Route23Script0: ; 51219 (14:5219)
ld [hSpriteIndexOrTextID], a
ld a, c
ld [wWhichBadge], a
- ld b, $2
+ ld b, FLAG_TEST
ld hl, wd7ed
predef FlagActionPredef
ld a, c
@@ -193,7 +193,7 @@ Route23Script_51346: ; 51346 (14:5346)
ld a, [wWhichBadge]
inc a
ld c, a
- ld b, $2
+ ld b, FLAG_TEST
ld hl, W_OBTAINEDBADGES
predef FlagActionPredef
ld a, c
@@ -210,7 +210,7 @@ Route23Script_51346: ; 51346 (14:5346)
call PrintText
ld a, [wWhichBadge]
ld c, a
- ld b, $1
+ ld b, FLAG_SET
ld hl, wd7ed
predef FlagActionPredef
ld a, $2