summaryrefslogtreecommitdiff
path: root/data/maps/AncientTomb
diff options
context:
space:
mode:
authorMelody <melody@pallet.town>2018-12-21 20:28:24 -0500
committerMelody <melody@pallet.town>2018-12-21 20:28:24 -0500
commitac2e4adf2da2f30a741556e20e5bc9a494997581 (patch)
tree1a05a202cfece044d546094581d8463a9b6e452c /data/maps/AncientTomb
parent87fd6b8dc21b37b656f16e3f11832c6951328750 (diff)
improve goto_if macros
Diffstat (limited to 'data/maps/AncientTomb')
-rw-r--r--data/maps/AncientTomb/scripts.inc11
1 files changed, 5 insertions, 6 deletions
diff --git a/data/maps/AncientTomb/scripts.inc b/data/maps/AncientTomb/scripts.inc
index f3c42b690..4ad411539 100644
--- a/data/maps/AncientTomb/scripts.inc
+++ b/data/maps/AncientTomb/scripts.inc
@@ -12,7 +12,7 @@ AncientTomb_MapScript1_238FC3: @ 8238FC3
AncientTomb_EventScript_238FCD:: @ 8238FCD
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 7
- goto_if 5, AncientTomb_EventScript_27374E
+ goto_if_ne AncientTomb_EventScript_27374E
removeobject VAR_LAST_TALKED
return
@@ -42,8 +42,7 @@ AncientTomb_EventScript_238FFC:: @ 8238FFC
AncientTomb_EventScript_239033:: @ 8239033
lockall
- checkflag FLAG_SYS_BRAILLE_FLY
- goto_eq AncientTomb_EventScript_239046
+ goto_if_set FLAG_SYS_BRAILLE_FLY, AncientTomb_EventScript_239046
braillemessage AncientTomb_Braille_2A6D06
waitbuttonpress
hidebox2
@@ -77,11 +76,11 @@ AncientTomb_EventScript_23905A:: @ 823905A
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 1
- goto_eq AncientTomb_EventScript_2390A1
+ goto_if_eq AncientTomb_EventScript_2390A1
compare VAR_RESULT, 4
- goto_eq AncientTomb_EventScript_2390AA
+ goto_if_eq AncientTomb_EventScript_2390AA
compare VAR_RESULT, 5
- goto_eq AncientTomb_EventScript_2390AA
+ goto_if_eq AncientTomb_EventScript_2390AA
setflag FLAG_0x1BD
release
end