summaryrefslogtreecommitdiff
path: root/data/scripts/maps/MtChimney.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/MtChimney.inc
parentf5fbe5b66226f4e7e38fe5d4638831d1ce19b36b (diff)
Add friendly macros for goto_if and call_if variants
Diffstat (limited to 'data/scripts/maps/MtChimney.inc')
-rw-r--r--data/scripts/maps/MtChimney.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/data/scripts/maps/MtChimney.inc b/data/scripts/maps/MtChimney.inc
index be4799a45..ac7c00013 100644
--- a/data/scripts/maps/MtChimney.inc
+++ b/data/scripts/maps/MtChimney.inc
@@ -26,7 +26,7 @@ MtChimney_EventScript_15CF95:: @ 815CF95
msgbox MtChimney_Text_1957A9, 4
checkitemspace ITEM_LAVA_COOKIE, 1
compare RESULT, 1
- call_if 1, MtChimney_EventScript_15D000
+ call_if_eq MtChimney_EventScript_15D000
giveitem_std ITEM_LAVA_COOKIE
compare RESULT, 0
goto_if_eq MtChimney_EventScript_15CFF3
@@ -406,10 +406,8 @@ MtChimney_EventScript_15D174:: @ 815D174
MtChimney_EventScript_15D17D:: @ 815D17D
lockall
- checkflag FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY
- goto_if 0, MtChimney_EventScript_15D1D0
- checkflag FLAG_RECEIVED_METEORITE
- goto_if_eq MtChimney_EventScript_15D1C6
+ goto_if_unset FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY, MtChimney_EventScript_15D1D0
+ goto_if_set FLAG_RECEIVED_METEORITE, MtChimney_EventScript_15D1C6
msgbox MtChimney_Text_195870, MSGBOX_YESNO
compare RESULT, NO
goto_if_eq MtChimney_EventScript_15D1BC