pokegold-spaceworld/scripts/OldCityPokecenterBattle.asm
DrippingYellow ce247cc761
Some checks failed
CI / build (push) Has been cancelled
Adding bank14, good chunk of text transcribed and labelled in bank0d, renaming farcall to callab, and much more (#112)
* Sporadic constantifying and function naming

* Added bank 14

* Delete .DS_Store files

* Delete EOL whitespace

* Use Tab indents instead of four spaces

* Identify some routines

* Identify more stuff

* Identified party and box structs

* Identified wBattleMon and wEnemyMon structs

* Macro'd landmarks, cleaned up comments

---------

Co-authored-by: vulcandth <vulcandth@gmail.com>
2025-01-16 12:12:38 -06:00

44 lines
929 B
NASM

INCLUDE "constants.asm"
SECTION "scripts/OldCityPokecenterBattle.asm", ROMX
OldCityPokecenterBattle_ScriptLoader:
ld hl, OldCityPokecenterBattleScriptPointers
call RunMapScript
call WriteBackMapScriptNumber
ret
OldCityPokecenterBattleScriptPointers:
dw OldCityPokecenterBattleScript1
dw OldCityPokecenterBattleNPCIds
OldCityPokecenterBattleScript1:
ld hl, OldCityPokecenterBattleNPCIds
ld de, OldCityPokecenterBattleSignPointers
call CallMapTextSubroutine
ret
OldCityPokecenterBattleNPCIds:
db $00, $ff
OldCityPokecenterBattleSignPointers:
dw MapDefaultText
OldCityPokecenterBattle_TextPointers:
dw OldCityPokecenterBattleText1
OldCityPokecenterBattleText1:
ld hl, wJoypadFlags
set 5, [hl]
ld hl, OldCityPokecenterBattleTextString1
call OpenTextbox
ld hl, wJoypadFlags
res 5, [hl]
callfar Function28000
ret
OldCityPokecenterBattleTextString1:
text "ちょっとまってね!@"
text_exit
db "@"