mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +00:00
d001ced41b
This introduces `def_script_pointers`, `def_text_pointers`, and `object_const_def` macros, and applies them to all maps. Most other map labels have also been identified.
45 lines
935 B
NASM
45 lines
935 B
NASM
Route15Gate2F_Script:
|
|
jp DisableAutoTextBoxDrawing
|
|
|
|
Route15Gate2F_TextPointers:
|
|
def_text_pointers
|
|
dw_const Route15Gate2FOaksAideText, TEXT_ROUTE15GATE2F_OAKS_AIDE
|
|
dw_const Route15Gate2FBinocularsText, TEXT_ROUTE15GATE2F_BINOCULARS
|
|
|
|
Route15Gate2FOaksAideText:
|
|
text_asm
|
|
CheckEvent EVENT_GOT_EXP_ALL
|
|
jr nz, .got_item
|
|
ld a, 50
|
|
ldh [hOaksAideRequirement], a
|
|
ld a, EXP_ALL
|
|
ldh [hOaksAideRewardItem], a
|
|
ld [wd11e], a
|
|
call GetItemName
|
|
ld hl, wcd6d
|
|
ld de, wOaksAideRewardItemName
|
|
ld bc, ITEM_NAME_LENGTH
|
|
call CopyData
|
|
predef OaksAideScript
|
|
ldh a, [hOaksAideResult]
|
|
cp OAKS_AIDE_GOT_ITEM
|
|
jr nz, .no_item
|
|
SetEvent EVENT_GOT_EXP_ALL
|
|
.got_item
|
|
ld hl, .ExpAllText
|
|
call PrintText
|
|
.no_item
|
|
jp TextScriptEnd
|
|
|
|
.ExpAllText:
|
|
text_far _Route15Gate2FOaksAideExpAllText
|
|
text_end
|
|
|
|
Route15Gate2FBinocularsText:
|
|
text_asm
|
|
ld hl, .Text
|
|
jp GateUpstairsScript_PrintIfFacingUp
|
|
|
|
.Text:
|
|
text_far _Route15Gate2FBinocularsText
|
|
text_end
|