Skip to content

Commit

Permalink
Add constants for BANK[] statements
Browse files Browse the repository at this point in the history
This will help people move them around, if need be.
This should be removed as soon as rgbds supports this.
  • Loading branch information
mid-kid committed Apr 28, 2019
1 parent eaed94c commit 2d8f97f
Show file tree
Hide file tree
Showing 60 changed files with 143 additions and 150 deletions.
3 changes: 1 addition & 2 deletions audio/music/aftertherivalfight.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as "Music_LookRival"
SECTION "Music_AfterTheRivalFight", ROMX, BANK[$3d]
SECTION "Music_AfterTheRivalFight", ROMX, BANK[BANK_MUSIC_RIVAL_ENCOUNTER]

Music_AfterTheRivalFight:
musicheader 4, 1, Music_AfterTheRivalFight_Ch1
Expand Down
3 changes: 1 addition & 2 deletions audio/music/johtowildbattle.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Referred to by "Music_JohtoWildBattleNight"
SECTION "Music_JohtoWildBattle", ROMX, BANK[$3d]
SECTION "Music_JohtoWildBattle", ROMX, BANK[BANK_MUSIC_JOHTO_WILD_BATTLE]

Music_JohtoWildBattle:
musicheader 3, 1, Music_JohtoWildBattle_Ch1
Expand Down
3 changes: 1 addition & 2 deletions audio/music/johtowildbattlenight.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as "Music_JohtoWildBattle"
SECTION "Music_JohtoWildBattleNight", ROMX, BANK[$3d]
SECTION "Music_JohtoWildBattleNight", ROMX, BANK[BANK_MUSIC_JOHTO_WILD_BATTLE]

Music_JohtoWildBattleNight:
musicheader 3, 1, Music_JohtoWildBattleNight_Ch1
Expand Down
3 changes: 1 addition & 2 deletions audio/music/lookrival.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Referred to by "Music_AfterTheRivalFight"
SECTION "Music_LookRival", ROMX, BANK[$3d]
SECTION "Music_LookRival", ROMX, BANK[BANK_MUSIC_RIVAL_ENCOUNTER]

Music_LookRival:
musicheader 4, 1, Music_LookRival_Ch1
Expand Down
3 changes: 1 addition & 2 deletions audio/music/lookrocket.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Referred to by "Music_RocketTheme"
SECTION "Music_LookRocket", ROMX, BANK[$3d]
SECTION "Music_LookRocket", ROMX, BANK[BANK_MUSIC_ROCKET_ENCOUNTER]

Music_LookRocket:
musicheader 4, 1, Music_LookRocket_Ch1
Expand Down
3 changes: 1 addition & 2 deletions audio/music/rockettheme.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as "Music_LookRocket"
SECTION "Music_RocketTheme", ROMX, BANK[$3d]
SECTION "Music_RocketTheme", ROMX, BANK[BANK_MUSIC_ROCKET_ENCOUNTER]

Music_RocketTheme:
musicheader 4, 1, Music_RocketTheme_Ch1
Expand Down
3 changes: 1 addition & 2 deletions audio/music/successfulcapture.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as "Music_WildPokemonVictory"
SECTION "Music_SuccessfulCapture", ROMX, BANK[$3d]
SECTION "Music_SuccessfulCapture", ROMX, BANK[BANK_MUSIC_WILD_VICTORY]

Music_SuccessfulCapture:
musicheader 3, 1, Music_SuccessfulCapture_Ch1
Expand Down
3 changes: 1 addition & 2 deletions audio/music/wildpokemonvictory.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Referred to by "Music_SuccessfulCapture"
SECTION "Music_WildPokemonVictory", ROMX, BANK[$3d]
SECTION "Music_WildPokemonVictory", ROMX, BANK[BANK_MUSIC_WILD_VICTORY]

Music_WildPokemonVictory:
musicheader 3, 1, Music_WildPokemonVictory_Ch1
Expand Down
1 change: 1 addition & 0 deletions constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ INCLUDE "charmap.asm"

INCLUDE "macros.asm"

INCLUDE "constants/floating_constants.asm"
INCLUDE "constants/hardware_constants.asm"
INCLUDE "constants/deco_constants.asm"
INCLUDE "constants/wram_constants.asm"
Expand Down
47 changes: 47 additions & 0 deletions constants/floating_constants.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
; This file is a stop-gap solution until the assembler supports BANK[] with section/label names.
; Floating-related caveats that aren't listed in this file, are commented with the FLOAT keyword.
; These constants shouldn't *ever* be used as a replacement for BANK()!

; See gfx/pics.asm
BANK_PICS EQU $48

; See gfx/sprites.asm
BANK_SPRITES EQU $30

; These functions are expected to be in the same bank by Init
BANK_GAME_INIT EQU $01 ; {WriteOAMDMACodeToHram, GameInit}

; ASCII Hacks
; Sections using these are split for the sole purpose of using a different charmap
BANK_MOBILE_40 EQU $40
BANK_MOBILE_46 EQU $46

; Tracks with alternate versions
BANK_MUSIC_WILD_VICTORY EQU $3d
BANK_MUSIC_RIVAL_ENCOUNTER EQU $3d
BANK_MUSIC_JOHTO_WILD_BATTLE EQU $3d
BANK_MUSIC_ROCKET_ENCOUNTER EQU $3d

; Maps
BANK_MAP_RUINS_OF_ALPH_RESEARCH_CENTER EQU $16 ; RuinsOfAlphKabutoChamberScientistScript -> RuinsOfAlphResearchCenterScientist1Text_GotAllUnown
BANK_MAP_ROUTE_35_NATIONAL_PARK_GATE EQU $1a ; Route36NationalParkGate_MapEvents -> BugCatchingContestExplanationSign
BANK_MAP_CELADON_DEPT_STORE_1F EQU $1c ; CeladonDeptStore6F_MapEvents -> CeladonDeptSotre1FElevatorButton
BANK_MAP_BATTLE_TOWER EQU $27
BANK_MAP_COLOSSEUM EQU $64 ; TradeCenter_MapEvents -> CableClubFriendScript

; Code
BANK_HAPPINESS EQU $01 ; {GetFirstPokemonHappiness, CheckFirstMonIsEgg} -> CopyPokemonName_Buffer1_Buffer3; HaircutOrGrooming -> ChangeHappiness
BANK_MAP_OBJECTS EQU $01 ; MapObjectMovementPattern -> CanObjectMoveInDirection; ReanchorBGMap_NoOAMUpdate -> ApplyBGMapAnchorToObjects
BANK_ANIMATE_HP_BAR EQU $03 ; AnimateHPBar -> _AnimateHPBar; {_AnimateHPBar, LongAnim_UpdateVariables, LongHPBarAnim_Updatetiles} -> ComputeHPBarPixels
BANK_MOVE_MON EQU $03 ; RetrieveMonFromDayCareMan -> GetBreedMon1LevelGrowth; RetrieveMonFromDayCareLady -> GetBreedMon2LevelGrowth; BugContest_SetCaughtContestMon -> GeneratePartyMonStats
BANK_BUG_CONTEST_JUDGING EQU $04 ; ComputeAIContestantScores -> CheckBugContestContestantFlag
BANK_PACK EQU $04 ; GiveItem -> TryGiveItemToPartymon
BANK_BUY_SELL_TOSS EQU $09 ; Kurt_SelectQuantity_InterpretJoypad -> BuySellToss_InterpretJoypad
BANK_TRAINER_ATTRIBUTES EQU $0e ; {AI_SwitchOrTryItem, AI_TryItem} -> TrainerClassAttributes
BANK_PARTY_MENU EQU $14 ; PlacePartyMonGender -> GetGender; PlacePartyMonStatus -> PlaceStatusString
BANK_MOBILE_22 EQU $22
BANK_BATTLE_TRANSITION EQU $23 ; {DoBattleTransition, StartTrainerBattle_LoadPokeBallGraphics} -> BattleStart_CopyTilemapAtOnce
BANK_PHONE_CALL EQU $24 ; PokegearPhone_MakePhoneCall -> Function90199; PokegearPhone_UpdateDisplayList -> Function90380
BANK_BUG_CONTEST_RESULTS EQU $2f ; BugContestResultsWarpScript -> Movement_ContestResults_WalkAfterWarp
BANK_PHONE_TIFFANY EQU $2f ; TiffanysFamilyMemebers -> {GrandmaString, GrandpaString, MomString, DadString, SisterString, BrotherString}
BANK_DUMMY_GAME EQU $38 ; _DummyGame -> {Unknown_e00ed, ret_e00ed}
3 changes: 1 addition & 2 deletions engine/battle/ai/items.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as TrainerClassAttributes
SECTION "AI_SwitchOrTryItem - TextJump_EnemyUsedOn", ROMX, BANK[$0e]
SECTION "AI_SwitchOrTryItem - TextJump_EnemyUsedOn", ROMX, BANK[BANK_TRAINER_ATTRIBUTES]

AI_SwitchOrTryItem:
and a
Expand Down
3 changes: 1 addition & 2 deletions engine/battle/anim_hp_bar.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as ComputeHPBarPixels
SECTION "_AnimateHPBar - ShortHPBar_CalcPixelFrame", ROMX, BANK[$03]
SECTION "_AnimateHPBar - ShortHPBar_CalcPixelFrame", ROMX, BANK[BANK_ANIMATE_HP_BAR]

_AnimateHPBar:
call .IsMaximumMoreThan48Pixels
Expand Down
3 changes: 1 addition & 2 deletions engine/battle/battle_transition.asm
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ BATTLETRANSITION_END EQU $80
BATTLETRANSITION_SQUARE EQU "8" ; $fe


; FLOAT: Must be in the same bank as BattleStart_CopyTilemapAtOnce
SECTION "DoBattleTransition - StartTrainerBattle_ZoomToBlack", ROMX, BANK[$23]
SECTION "DoBattleTransition - StartTrainerBattle_ZoomToBlack", ROMX, BANK[BANK_BATTLE_TRANSITION]

DoBattleTransition:
call .InitGFX
Expand Down
3 changes: 1 addition & 2 deletions engine/battle/battlestart_copytilemapatonce.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Referred to by DoBattleTransition and StartTrainerBattle_LoadPokeBallGraphics
SECTION "BattleStart_CopyTilemapAtOnce", ROMX, BANK[$23]
SECTION "BattleStart_CopyTilemapAtOnce", ROMX, BANK[BANK_BATTLE_TRANSITION]

BattleStart_CopyTilemapAtOnce:
call CGBOnly_CopyTilemapAtOnce
Expand Down
3 changes: 1 addition & 2 deletions engine/battle/read_trainer_attributes.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Referred to by "AI_SwitchOrTryItem - TextJump_EnemyUsedOn"
SECTION "GetTrainerClassName - TrainerClassAttributes", ROMX, BANK[$0e]
SECTION "GetTrainerClassName - TrainerClassAttributes", ROMX, BANK[BANK_TRAINER_ATTRIBUTES]

GetTrainerClassName:
ld hl, wRivalName
Expand Down
3 changes: 1 addition & 2 deletions engine/events/bug_contest/caught_mon.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as GeneratePartyMonStats
SECTION "BugContest_SetCaughtContestMon", ROMX, BANK[$03]
SECTION "BugContest_SetCaughtContestMon", ROMX, BANK[BANK_MOVE_MON]

BugContest_SetCaughtContestMon:
ld a, [wContestMon]
Expand Down
3 changes: 1 addition & 2 deletions engine/events/bug_contest/contest_2.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Referred to by ComputeAIContestantScores
SECTION "SelectRandomBugContestContestants - BugCatchingContestantEventFlagTable", ROMX, BANK[$04]
SECTION "SelectRandomBugContestContestants - BugCatchingContestantEventFlagTable", ROMX, BANK[BANK_BUG_CONTEST_JUDGING]

SelectRandomBugContestContestants:
; Select five random people to participate in the current contest.
Expand Down
3 changes: 1 addition & 2 deletions engine/events/bug_contest/judging.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as CheckBugContestContestantFlag
SECTION "_BugContestJudging - ContestScore", ROMX, BANK[$04]
SECTION "_BugContestJudging - ContestScore", ROMX, BANK[BANK_BUG_CONTEST_JUDGING]

_BugContestJudging:
call ContestScore
Expand Down
3 changes: 1 addition & 2 deletions engine/events/haircut.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as "GetFirstPokemonHappiness - HappinessChanges"
SECTION "BillsGrandfather - CopyPokemonName_Buffer1_Buffer3", ROMX, BANK[$01]
SECTION "BillsGrandfather - CopyPokemonName_Buffer1_Buffer3", ROMX, BANK[BANK_HAPPINESS]

BillsGrandfather:
farcall SelectMonFromParty
Expand Down
3 changes: 1 addition & 2 deletions engine/events/happiness_egg.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as "BillsGrandfather - CopyPokemonName_Buffer1_Buffer3"
SECTION "GetFirstPokemonHappiness - HappinessChanges", ROMX, BANK[$01]
SECTION "GetFirstPokemonHappiness - HappinessChanges", ROMX, BANK[BANK_HAPPINESS]

GetFirstPokemonHappiness:
ld hl, wPartyMon1Happiness
Expand Down
3 changes: 1 addition & 2 deletions engine/events/kurt_selectquantity_interpretjoypad.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as BuySellToss_InterpretJoypad
SECTION "Kurt_SelectQuantity_InterpretJoypad", ROMX, BANK[$09]
SECTION "Kurt_SelectQuantity_InterpretJoypad", ROMX, BANK[BANK_BUY_SELL_TOSS]

Kurt_SelectQuantity_InterpretJoypad:
call BuySellToss_InterpretJoypad
Expand Down
6 changes: 2 additions & 4 deletions engine/events/std_scripts.asm
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,7 @@ RadioTowerRocketsScript:
end


; FLOAT: Must be in the same bank as Movement_ContestResults_WalkAfterWarp
SECTION "BugContestResultsWarpScript - BugContestResults_CopyContestantsToResults", ROMX, BANK[$2f]
SECTION "BugContestResultsWarpScript - BugContestResults_CopyContestantsToResults", ROMX, BANK[BANK_BUG_CONTEST_RESULTS]

BugContestResultsWarpScript:
special ClearBGPalettes
Expand Down Expand Up @@ -2043,8 +2042,7 @@ HappinessCheckScript:
end


; FLOAT: Referred to by BugContestResultsWarpScript
SECTION "Movement_ContestResults_WalkAfterWarp", ROMX, BANK[$2f]
SECTION "Movement_ContestResults_WalkAfterWarp", ROMX, BANK[BANK_BUG_CONTEST_RESULTS]

Movement_ContestResults_WalkAfterWarp:
step RIGHT
Expand Down
3 changes: 1 addition & 2 deletions engine/games/card_flip.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ CARDFLIP_LIGHT_ON EQU "♀" ; $f5
CARDFLIP_DECK_SIZE EQU 4 * 6


; FLOAT: Referred to by _DummyGame
SECTION "Unknown_e00ed", ROMX, BANK[$38]
SECTION "Unknown_e00ed", ROMX, BANK[BANK_DUMMY_GAME]

; two labels below called from inside ./dummy_game.asm
Unknown_e00ed:
Expand Down
3 changes: 1 addition & 2 deletions engine/games/dummy_game.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as ret_e00ed
SECTION "_DummyGame - LZ_e2221", ROMX, BANK[$38]
SECTION "_DummyGame - LZ_e2221", ROMX, BANK[BANK_DUMMY_GAME]

_DummyGame:
call .LoadGFXAndPals
Expand Down
3 changes: 1 addition & 2 deletions engine/gfx/load_push_oam.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as GameInit
SECTION "WriteOAMDMACodeToHRAM", ROMX, BANK[$01]
SECTION "WriteOAMDMACodeToHRAM", ROMX, BANK[BANK_GAME_INIT]

WriteOAMDMACodeToHRAM::
ld c, LOW(hTransferVirtualOAM)
Expand Down
3 changes: 1 addition & 2 deletions engine/items/buy_sell_toss.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Referred to by Kurt_SelectQuantity_InterpretJoypad
SECTION "SelectQuantityToToss - SellItem_MenuHeader", ROMX, BANK[$09]
SECTION "SelectQuantityToToss - SellItem_MenuHeader", ROMX, BANK[BANK_BUY_SELL_TOSS]

SelectQuantityToToss:
ld hl, TossItem_MenuHeader
Expand Down
3 changes: 1 addition & 2 deletions engine/items/pack.asm
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
const PACKSTATE_QUITRUNSCRIPT ; 10


; FLOAT: Must be in the same bank as TryGiveItemToPartymon
SECTION "Pack - PackGFX", ROMX, BANK[$04]
SECTION "Pack - PackGFX", ROMX, BANK[BANK_PACK]

Pack:
ld hl, wOptions
Expand Down
3 changes: 1 addition & 2 deletions engine/menus/intro_menu.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as WriteOAMDMACodeToHRAM
SECTION "_MainMenu - GameInit", ROMX, BANK[$01]
SECTION "_MainMenu - GameInit", ROMX, BANK[BANK_GAME_INIT]

_MainMenu:
ld de, MUSIC_NONE
Expand Down
3 changes: 1 addition & 2 deletions engine/menus/start_menu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
const STARTMENUITEM_POKEGEAR ; 7
const STARTMENUITEM_QUIT ; 8

; FLOAT: Referred to by GiveItem
SECTION "StartMenu - UseRegisteredItem", ROMX, BANK[$04]
SECTION "StartMenu - UseRegisteredItem", ROMX, BANK[BANK_PACK]

StartMenu::
call ClearWindowData
Expand Down
3 changes: 1 addition & 2 deletions engine/overworld/init_map.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as ApplyBGMapAnchorToObjects
SECTION "ReanchorBGMap_NoOAMUpdate - HDMATransfer_FillBGMap0WithBlack", ROMX, BANK[$01]
SECTION "ReanchorBGMap_NoOAMUpdate - HDMATransfer_FillBGMap0WithBlack", ROMX, BANK[BANK_MAP_OBJECTS]

ReanchorBGMap_NoOAMUpdate::
call DelayFrame
Expand Down
4 changes: 1 addition & 3 deletions engine/overworld/map_objects.asm
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
; FLOAT: Referred to by ReanchorBGMap_NoOAMUpdate
; FLOAT: Must be in the same bank as CanObjectMoveInDirection
SECTION "Facings - InitSprites", ROMX, BANK[$01]
SECTION "Facings - InitSprites", ROMX, BANK[BANK_MAP_OBJECTS]

INCLUDE "data/sprites/facings.asm"

Expand Down
3 changes: 1 addition & 2 deletions engine/overworld/npc_movement.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Referred to by MapObjectMovementPattern
SECTION "CanObjectMoveInDirection - Function7171", ROMX, BANK[$01]
SECTION "CanObjectMoveInDirection - Function7171", ROMX, BANK[BANK_MAP_OBJECTS]

CanObjectMoveInDirection:
ld hl, OBJECT_PALETTE
Expand Down
3 changes: 1 addition & 2 deletions engine/phone/phone.asm
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ GetRemainingSpaceInPhoneList:
INCLUDE "data/phone/permanent_numbers.asm"


; FLOAT: Referred to by PokegearPhone_MakePhoneCall and PokegearPhone_UpdateDisplayList
SECTION "FarPlaceString - UnknownText_0x9066d", ROMX, BANK[$24]
SECTION "FarPlaceString - UnknownText_0x9066d", ROMX, BANK[BANK_PHONE_CALL]

FarPlaceString:
ldh a, [hROMBank]
Expand Down
3 changes: 1 addition & 2 deletions engine/phone/scripts/generic_callee.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1258,8 +1258,7 @@ PhoneScript_MonFlavorText:
farsjump PhoneScript_HangupText_Male


; FLOAT: Referred to by TiffanysFamilyMembers
SECTION "GrandmaString - BrotherString", ROMX, BANK[$2f]
SECTION "GrandmaString - BrotherString", ROMX, BANK[BANK_PHONE_TIFFANY]

GrandmaString: db "Grandma@"
GrandpaString: db "Grandpa@"
Expand Down
3 changes: 1 addition & 2 deletions engine/phone/scripts/tiffany.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as "GrandmaString - BrotherString"
SECTION "TiffanyPhoneCalleeScript - TiffanyHasPinkBow", ROMX, BANK[$2f]
SECTION "TiffanyPhoneCalleeScript - TiffanyHasPinkBow", ROMX, BANK[BANK_PHONE_TIFFANY]

TiffanyPhoneCalleeScript:
gettrainername STRING_BUFFER_3, PICNICKER, TIFFANY3
Expand Down
3 changes: 1 addition & 2 deletions engine/pokegear/pokegear.asm
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ NUM_POKEGEAR_CARDS EQU const_value
const POKEGEARSTATE_RADIOJOYPAD ; c


; FLOAT: Must be in the same bank as Function90199 and Function90380
SECTION "PokeGear - PlayRadio", ROMX, BANK[$24]
SECTION "PokeGear - PlayRadio", ROMX, BANK[BANK_PHONE_CALL]

PokeGear:
ld hl, wOptions
Expand Down
3 changes: 1 addition & 2 deletions engine/pokemon/breedmon_level_growth.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Referred to by RetrieveMonFromDayCareMan and RetrieveMonFromDayCareLady
SECTION "GetBreedMon1LevelGrowth - GetBreedMon2LevelGrowth", ROMX, BANK[$03]
SECTION "GetBreedMon1LevelGrowth - GetBreedMon2LevelGrowth", ROMX, BANK[BANK_MOVE_MON]

GetBreedMon1LevelGrowth:
ld hl, wBreedMon1Stats
Expand Down
3 changes: 1 addition & 2 deletions engine/pokemon/health.asm
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ HealPartyMon:
ret


; FLOAT: Must be in the same bank as _AnimateHPBar
SECTION "ComputeHPBarPixels - AnimateHPBar", ROMX, BANK[$03]
SECTION "ComputeHPBarPixels - AnimateHPBar", ROMX, BANK[BANK_ANIMATE_HP_BAR]

ComputeHPBarPixels:
; e = bc * (6 * 8) / de
Expand Down
6 changes: 2 additions & 4 deletions engine/pokemon/mon_stats.asm
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ PrintTempMonStats:
next "@"


; FLOAT: Referred to by PlacePartyMonGender
SECTION "GetGender", ROMX, BANK[$14]
SECTION "GetGender", ROMX, BANK[BANK_PARTY_MENU]

GetGender:
; Return the gender of a given monster (wCurPartyMon/wCurOTMon/wCurWildMon).
Expand Down Expand Up @@ -383,8 +382,7 @@ Unused_PlaceEnemyHPLevel:
ret


; FLOAT: Referred to by PlacePartyMonStatus
SECTION "PlaceStatusString - ParString", ROMX, BANK[$14]
SECTION "PlaceStatusString - ParString", ROMX, BANK[BANK_PARTY_MENU]

PlaceStatusString:
push de
Expand Down
4 changes: 1 addition & 3 deletions engine/pokemon/move_mon.asm
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
RANDY_OT_ID EQU 01001


; FLOAT: Must be in the same bank as GetBreedMon1LevelGrowth and GetBreedMon2LevelGrowth
; Referred to by BugContest_SetCaughtContestMon.
SECTION "TryAddMonToParty - InitNickname", ROMX, BANK[$03]
SECTION "TryAddMonToParty - InitNickname", ROMX, BANK[BANK_MOVE_MON]

TryAddMonToParty:
; Check if to copy wild mon or generate a new one
Expand Down
3 changes: 1 addition & 2 deletions engine/pokemon/party_menu.asm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; FLOAT: Must be in the same bank as GetGender and PlaceStatusString
SECTION "SelectMonFromParty - YouHaveNoPKMNString", ROMX, BANK[$14]
SECTION "SelectMonFromParty - YouHaveNoPKMNString", ROMX, BANK[BANK_PARTY_MENU]

SelectMonFromParty:
call DisableSpriteUpdates
Expand Down
Loading

0 comments on commit 2d8f97f

Please sign in to comment.