aboutsummaryrefslogtreecommitdiffstats
path: root/engine/events
diff options
context:
space:
mode:
authorNarishma-gb <194818981+Narishma-gb@users.noreply.github.com>2025-12-15 21:14:17 +0100
committerGitHub <noreply@github.com>2025-12-15 15:14:17 -0500
commite9d3324bc06faa7de3b7a35d1f9429e610e8a761 (patch)
tree63efb83577bf37c03aea14c8f29ca473676eb0d6 /engine/events
parentClarify how the order of map constants matters for the Town Map (#553) (diff)
downloadpokeyellow-e9d3324bc06faa7de3b7a35d1f9429e610e8a761.tar.gz
pokeyellow-e9d3324bc06faa7de3b7a35d1f9429e610e8a761.tar.xz
pokeyellow-e9d3324bc06faa7de3b7a35d1f9429e610e8a761.zip
Comment more unreferenced local labels (#550)
Diffstat (limited to 'engine/events')
-rw-r--r--engine/events/diploma.asm4
-rw-r--r--engine/events/pokemart.asm4
-rw-r--r--engine/events/prize_menu.asm14
3 files changed, 11 insertions, 11 deletions
diff --git a/engine/events/diploma.asm b/engine/events/diploma.asm
index 3d181210..e2a34a3b 100644
--- a/engine/events/diploma.asm
+++ b/engine/events/diploma.asm
@@ -73,8 +73,8 @@ DisplayDiploma::
jp GBPalNormal
UnusedPlayerNameLengthFunc:
-; Unused function that does a calculation involving the length of the player's
-; name.
+; Unused function that performs bc = -(player name's length)
+; leftover from the JPN versions
ld hl, wPlayerName
lb bc, $ff, $00
.loop
diff --git a/engine/events/pokemart.asm b/engine/events/pokemart.asm
index b280c711..cb25ab4c 100644
--- a/engine/events/pokemart.asm
+++ b/engine/events/pokemart.asm
@@ -99,7 +99,7 @@ DisplayPokemartDialogue_::
dec a
jr z, .sellMenuLoop
-.sellItem
+; sell item
ld a, [wBoughtOrSoldItemInMart]
and a
jr nz, .skipSettingFlag1
@@ -177,7 +177,7 @@ DisplayPokemartDialogue_::
dec a
jr z, .buyMenuLoop
-.buyItem
+; buy item
call .isThereEnoughMoney
jr c, .notEnoughMoney
ld hl, wNumBagItems
diff --git a/engine/events/prize_menu.asm b/engine/events/prize_menu.asm
index 15b991ed..1f71af42 100644
--- a/engine/events/prize_menu.asm
+++ b/engine/events/prize_menu.asm
@@ -195,7 +195,7 @@ HandlePrizeChoice:
.getMonName
call GetMonName
.givePrize
- ld hl, SoYouWantPrizeTextPtr
+ ld hl, SoYouWantPrizeText
call PrintText
call YesNoChoice
ld a, [wCurrentMenuItem] ; yes/no answer (Y=0, N=1)
@@ -243,25 +243,25 @@ HandlePrizeChoice:
predef SubBCDPredef
jp PrintPrizePrice
.bagFull
- ld hl, PrizeRoomBagIsFullTextPtr
+ ld hl, PrizeRoomBagIsFullText
jp PrintText
.notEnoughCoins
ld hl, SorryNeedMoreCoinsText
jp PrintText
.printOhFineThen
- ld hl, OhFineThenTextPtr
+ ld hl, OhFineThenText
jp PrintText
UnknownPrizeData:
; XXX what's this?
db $00,$01,$00,$01,$00,$01,$00,$00,$01
-HereYouGoTextPtr:
+HereYouGoText: ; unreferenced
text_far _HereYouGoText
text_waitbutton
text_end
-SoYouWantPrizeTextPtr:
+SoYouWantPrizeText:
text_far _SoYouWantPrizeText
text_end
@@ -270,12 +270,12 @@ SorryNeedMoreCoinsText:
text_waitbutton
text_end
-PrizeRoomBagIsFullTextPtr:
+PrizeRoomBagIsFullText:
text_far _OopsYouDontHaveEnoughRoomText
text_waitbutton
text_end
-OhFineThenTextPtr:
+OhFineThenText:
text_far _OhFineThenText
text_waitbutton
text_end