pokered/scripts/CeruleanTrashedHouse.asm
vulcandth d001ced41b
Add macros, constants, and labels for map scripts and text (#367)
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.
2023-07-13 21:27:56 -04:00

40 lines
971 B
NASM

CeruleanTrashedHouse_Script:
call EnableAutoTextBoxDrawing
ret
CeruleanTrashedHouse_TextPointers:
def_text_pointers
dw_const CeruleanTrashedHouseFishingGuruText, TEXT_CERULEANTRASHEDHOUSE_FISHING_GURU
dw_const CeruleanTrashedHouseGirlText, TEXT_CERULEANTRASHEDHOUSE_GIRL
dw_const CeruleanTrashedHouseWallHoleText, TEXT_CERULEANTRASHEDHOUSE_WALL_HOLE
CeruleanTrashedHouseFishingGuruText:
text_asm
ld b, TM_DIG
predef GetQuantityOfItemInBag
and b
jr z, .no_dig_tm
ld hl, .WhatsLostIsLostText
call PrintText
jr .done
.no_dig_tm
ld hl, .TheyStoleATMText
call PrintText
.done
jp TextScriptEnd
.TheyStoleATMText:
text_far _CeruleanTrashedHouseFishingGuruTheyStoleATMText
text_end
.WhatsLostIsLostText:
text_far _CeruleanTrashedHouseFishingGuruWhatsLostIsLostText
text_end
CeruleanTrashedHouseGirlText:
text_far _CeruleanTrashedHouseGirlText
text_end
CeruleanTrashedHouseWallHoleText:
text_far _CeruleanTrashedHouseWallHoleText
text_end