Identify more bit flags (#1153)

This commit is contained in:
Sylvie
2024-11-29 19:29:30 -05:00
committed by GitHub
parent 8894e29da2
commit 644bd42fb0
78 changed files with 539 additions and 472 deletions

View File

@@ -1184,7 +1184,7 @@ Script_reloadmapafterbattle:
jp ScriptJump
.notblackedout
bit 0, d
bit BATTLESCRIPT_WILD_F, d
jr z, .was_wild
farcall MomTriesToBuySomething
jr .done
@@ -1393,7 +1393,7 @@ Script_sdefer:
call GetScriptByte
ld [wDeferredScriptAddr + 1], a
ld hl, wScriptFlags
set 3, [hl]
set RUN_DEFERRED_SCRIPT, [hl]
ret
Script_checkscene:
@@ -2260,7 +2260,7 @@ Script_end:
ld a, SCRIPT_OFF
ld [wScriptMode], a
ld hl, wScriptFlags
res 0, [hl]
res UNUSED_SCRIPT_FLAG_0, [hl]
call StopScript
ret
@@ -2269,7 +2269,7 @@ Script_endcallback:
jr c, .dummy
.dummy
ld hl, wScriptFlags
res 0, [hl]
res UNUSED_SCRIPT_FLAG_0, [hl]
call StopScript
ret
@@ -2310,7 +2310,7 @@ Script_endall:
ld a, SCRIPT_OFF
ld [wScriptMode], a
ld hl, wScriptFlags
res 0, [hl]
res UNUSED_SCRIPT_FLAG_0, [hl]
call StopScript
ret