aboutsummaryrefslogtreecommitdiffstats
path: root/data/maps/objects/PalletTown.asm
diff options
context:
space:
mode:
authorvulcandth <vulcandth@gmail.com>2023-07-13 20:27:56 -0500
committerGitHub <noreply@github.com>2023-07-13 21:27:56 -0400
commitd001ced41b53271373753de835a9c3b3413dc318 (patch)
treeff2db7f403bddfcdeb12e50def8411cafedcdd5e /data/maps/objects/PalletTown.asm
parentMake wCurrentBoxNum a byte instead of word (#414) (diff)
downloadpokeyellow-d001ced41b53271373753de835a9c3b3413dc318.tar.gz
pokeyellow-d001ced41b53271373753de835a9c3b3413dc318.tar.xz
pokeyellow-d001ced41b53271373753de835a9c3b3413dc318.zip
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.
Diffstat (limited to 'data/maps/objects/PalletTown.asm')
-rw-r--r--data/maps/objects/PalletTown.asm19
1 files changed, 12 insertions, 7 deletions
diff --git a/data/maps/objects/PalletTown.asm b/data/maps/objects/PalletTown.asm
index 1343f0cd..793ec164 100644
--- a/data/maps/objects/PalletTown.asm
+++ b/data/maps/objects/PalletTown.asm
@@ -1,3 +1,8 @@
+ object_const_def
+ const PALLETTOWN_OAK
+ const PALLETTOWN_GIRL
+ const PALLETTOWN_FISHER
+
PalletTown_Object:
db $b ; border block
@@ -7,14 +12,14 @@ PalletTown_Object:
warp_event 12, 11, OAKS_LAB, 2
def_bg_events
- bg_event 13, 13, 4 ; PalletTownText4
- bg_event 7, 9, 5 ; PalletTownText5
- bg_event 3, 5, 6 ; PalletTownText6
- bg_event 11, 5, 7 ; PalletTownText7
+ bg_event 13, 13, TEXT_PALLETTOWN_OAKSLAB_SIGN
+ bg_event 7, 9, TEXT_PALLETTOWN_SIGN
+ bg_event 3, 5, TEXT_PALLETTOWN_PLAYERSHOUSE_SIGN
+ bg_event 11, 5, TEXT_PALLETTOWN_RIVALSHOUSE_SIGN
def_object_events
- object_event 8, 5, SPRITE_OAK, STAY, NONE, 1 ; person
- object_event 3, 8, SPRITE_GIRL, WALK, ANY_DIR, 2 ; person
- object_event 11, 14, SPRITE_FISHER, WALK, ANY_DIR, 3 ; person
+ object_event 8, 5, SPRITE_OAK, STAY, NONE, TEXT_PALLETTOWN_OAK
+ object_event 3, 8, SPRITE_GIRL, WALK, ANY_DIR, TEXT_PALLETTOWN_GIRL
+ object_event 11, 14, SPRITE_FISHER, WALK, ANY_DIR, TEXT_PALLETTOWN_FISHER
def_warps_to PALLET_TOWN