summaryrefslogtreecommitdiff
path: root/data/scripts/maps/AncientTomb.inc
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-01-05 11:36:47 -0800
committerMarcus Huderle <huderlem@gmail.com>2018-01-05 11:36:47 -0800
commitaed64560bc222e4ea5ccec266c0d77859a05eaac (patch)
treeecdbc1f85cf112f24207adb27b63b93d1e503edf /data/scripts/maps/AncientTomb.inc
parentf5fbe5b66226f4e7e38fe5d4638831d1ce19b36b (diff)
Add friendly macros for goto_if and call_if variants
Diffstat (limited to 'data/scripts/maps/AncientTomb.inc')
-rw-r--r--data/scripts/maps/AncientTomb.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/data/scripts/maps/AncientTomb.inc b/data/scripts/maps/AncientTomb.inc
index b849f41ba..8ff39c0a4 100644
--- a/data/scripts/maps/AncientTomb.inc
+++ b/data/scripts/maps/AncientTomb.inc
@@ -5,8 +5,7 @@ AncientTomb_MapScripts:: @ 815EFBE
.byte 0
AncientTomb_MapScript1_15EFCE:: @ 815EFCE
- checkflag FLAG_SYS_CTRL_OBJ_DELETE
- call_if 1, AncientTomb_EventScript_15EFD8
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, AncientTomb_EventScript_15EFD8
end
AncientTomb_EventScript_15EFD8:: @ 815EFD8
@@ -18,8 +17,7 @@ AncientTomb_MapScript1_15EFDC:: @ 815EFDC
end
AncientTomb_MapScript1_15EFE0:: @ 815EFE0
- checkflag FLAG_SYS_BRAILLE_FLY
- call_if 0, AncientTomb_EventScript_15EFEA
+ call_if_unset FLAG_SYS_BRAILLE_FLY, AncientTomb_EventScript_15EFEA
end
AncientTomb_EventScript_15EFEA:: @ 815EFEA
@@ -33,8 +31,7 @@ AncientTomb_EventScript_15EFEA:: @ 815EFEA
AncientTomb_EventScript_15F021:: @ 815F021
lockall
- checkflag FLAG_SYS_BRAILLE_FLY
- goto_if_eq AncientTomb_EventScript_15F038
+ goto_if_set FLAG_SYS_BRAILLE_FLY, AncientTomb_EventScript_15F038
braillemessage AncientTomb_Braille_1C552E
waitbuttonpress
erasebox 0, 0, 29, 19