Say "BANK(Foo) ; aka BANK(Bar)" to clarify that Foo and Bar share a bank

This commit is contained in:
Rangi
2019-01-12 15:17:20 -05:00
parent 07374f02cc
commit 1853e3d127
13 changed files with 23 additions and 23 deletions

View File

@@ -138,7 +138,7 @@ ConvertTrainerBattlePokeballTilesTo2bpp:
pop hl
ld de, wDecompressScratch
ld b, BANK(ConvertTrainerBattlePokeballTilesTo2bpp) ; BANK(@)
ld b, BANK(@)
ld c, $28
call Request2bpp
pop af

View File

@@ -4157,7 +4157,7 @@ PursuitSwitch:
ld a, [wLastPlayerMon]
ld [wCurBattleMon], a
.do_turn
ld a, BANK(DoPlayerTurn) ; and BANK(DoEnemyTurn)
ld a, BANK(DoPlayerTurn) ; aka BANK(DoEnemyTurn)
rst FarCall
ld a, BATTLE_VARS_MOVE
@@ -4407,7 +4407,7 @@ UseHeldStatusHealingItem:
.got_pointer
call SwitchTurnCore
ld a, BANK(CalcPlayerStats) ; and BANK(CalcEnemyStats)
ld a, BANK(CalcPlayerStats) ; aka BANK(CalcEnemyStats)
rst FarCall
call SwitchTurnCore
call ItemRecoveryAnim

View File

@@ -59,7 +59,7 @@ BattleCommand_Present:
jr z, .got_hp_fn_pointer
ld hl, AICheckEnemyMaxHP
.got_hp_fn_pointer
ld a, BANK(AICheckPlayerMaxHP) ; and BANK(AICheckEnemyMaxHP)
ld a, BANK(AICheckPlayerMaxHP) ; aka BANK(AICheckEnemyMaxHP)
rst FarCall
jr c, .already_fully_healed