Add some comments/constants to core.asm and intro_menu.asm

This commit is contained in:
Narishma-gb
2026-02-07 21:51:49 +01:00
committed by Rangi
parent 69c42a0d26
commit e317ca613f
2 changed files with 7 additions and 9 deletions

View File

@@ -4633,7 +4633,9 @@ UpdateHPPal:
jp FinishBattleAnim
Battle_DummyFunction:
; called before placing either battler's nickname in the HUD
; Called before placing either battler's nickname in the HUD.
; This was CenterMonName in Gen 1.
; In Gen 2, pokemon nicknames are always left-aligned on the HUD.
ret
BattleMenu:
@@ -7810,7 +7812,7 @@ StartBattle:
lb bc, 4, 10
call ClearBox
call ClearSprites
ld a, [wEnemyMonEnd]
ld a, [wBattleMode]
cp WILD_BATTLE
call z, UpdateEnemyHUD
ld a, $1
@@ -8139,7 +8141,7 @@ ReadAndPrintLinkBattleRecord:
pop hl
call PlaceString
pop hl
ld de, 26
ld de, SCREEN_WIDTH + 6
add hl, de
push hl
ld de, wLinkBattleRecordWins

View File

@@ -166,7 +166,7 @@ SetDefaultBoxNames:
ld [hli], a
ld [hl], '@'
pop hl
ld de, 9
ld de, BOX_NAME_LENGTH
add hl, de
inc c
ld a, c
@@ -474,11 +474,7 @@ Continue_DisplayPokedexNumCaught:
ret z
push hl
ld hl, wPokedexCaught
if NUM_POKEMON % 8
ld b, NUM_POKEMON / 8 + 1
else
ld b, NUM_POKEMON / 8
endc
ld b, (NUM_POKEMON + 7) / 8
call CountSetBits
pop hl
ld de, wNumSetBits