Use more constants

This commit is contained in:
Rangi
2019-01-24 21:15:30 -05:00
parent 84b6a084cb
commit 68d4a53483
2 changed files with 8 additions and 8 deletions

View File

@@ -163,7 +163,7 @@ NUM_CMDQUEUE_TYPES EQU const_value
const EMOTE_ROD ; 9 const EMOTE_ROD ; 9
const EMOTE_BOULDER_DUST ; 10 const EMOTE_BOULDER_DUST ; 10
const EMOTE_GRASS_RUSTLE ; 11 const EMOTE_GRASS_RUSTLE ; 11
EMOTE_MEM EQU -1 EMOTE_FROM_MEM EQU -1
; fruittree arguments ; fruittree arguments
; FruitTreeItems indexes (see data/items/fruit_trees.asm) ; FruitTreeItems indexes (see data/items/fruit_trees.asm)

View File

@@ -511,7 +511,7 @@ Script_verbosegiveitem:
call Script_giveitem call Script_giveitem
call CurItemName call CurItemName
ld de, wStringBuffer1 ld de, wStringBuffer1
ld a, 1 ld a, MEM_BUFFER_1
call CopyConvertedText call CopyConvertedText
ld b, BANK(GiveItemScript) ld b, BANK(GiveItemScript)
ld de, GiveItemScript ld de, GiveItemScript
@@ -544,7 +544,7 @@ Script_verbosegiveitem2:
; parameters: item, var ; parameters: item, var
call GetScriptByte call GetScriptByte
cp -1 cp ITEM_FROM_MEM
jr nz, .ok jr nz, .ok
ld a, [wScriptVar] ld a, [wScriptVar]
.ok .ok
@@ -562,7 +562,7 @@ Script_verbosegiveitem2:
ld [wScriptVar], a ld [wScriptVar], a
call CurItemName call CurItemName
ld de, wStringBuffer1 ld de, wStringBuffer1
ld a, 1 ld a, MEM_BUFFER_1
call CopyConvertedText call CopyConvertedText
ld b, BANK(GiveItemScript) ld b, BANK(GiveItemScript)
ld de, GiveItemScript ld de, GiveItemScript
@@ -1222,7 +1222,7 @@ Script_loademote:
; parameters: bubble ; parameters: bubble
call GetScriptByte call GetScriptByte
cp -1 cp EMOTE_FROM_MEM
jr nz, .not_var_emote jr nz, .not_var_emote
ld a, [wScriptVar] ld a, [wScriptVar]
.not_var_emote .not_var_emote
@@ -1249,7 +1249,7 @@ Script_showemote:
jp ScriptCall jp ScriptCall
ShowEmoteScript: ShowEmoteScript:
loademote EMOTE_MEM loademote EMOTE_FROM_MEM
applymovement2 .Show applymovement2 .Show
pause 0 pause 0
applymovement2 .Hide applymovement2 .Hide
@@ -2520,7 +2520,7 @@ Script_blackoutmod:
Script_dontrestartmapmusic: Script_dontrestartmapmusic:
; script command 0x83 ; script command 0x83
ld a, 1 ld a, TRUE
ld [wDontPlayMapMusicOnReload], a ld [wDontPlayMapMusicOnReload], a
ret ret
@@ -2547,7 +2547,7 @@ Script_delcmdqueue:
ld b, a ld b, a
farcall DelCmdQueue ; no need to farcall farcall DelCmdQueue ; no need to farcall
ret c ret c
ld a, 1 ld a, TRUE
ld [wScriptVar], a ld [wScriptVar], a
ret ret