You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Rename BATTLETOWER_NROF constants
This commit is contained in:
@@ -363,7 +363,7 @@ ReadBTTrainerParty: ; 1702b7
|
||||
; Copy Pkmn into Memory from the address in hl
|
||||
ld de, OTPartyMon1Species
|
||||
ld bc, OTPartyCount
|
||||
ld a, BATTLETOWER_NROFPKMNS ; Number of Pkmn the BattleTower-Trainer has
|
||||
ld a, BATTLETOWER_PARTY_SIZE
|
||||
ld [bc], a
|
||||
inc bc
|
||||
.otpartymon_loop
|
||||
@@ -399,7 +399,7 @@ ReadBTTrainerParty: ; 1702b7
|
||||
ValidateBTParty: ; 170394
|
||||
; Check for and fix errors in party data
|
||||
ld hl, wBT_OTTempPkmn1Species
|
||||
ld d, BATTLETOWER_NROFPKMNS
|
||||
ld d, BATTLETOWER_PARTY_SIZE
|
||||
.pkmn_loop
|
||||
push de
|
||||
push hl
|
||||
@@ -509,7 +509,7 @@ BT_ChrisName: ; 170426
|
||||
|
||||
Function17042c: ; 17042c
|
||||
ld hl, w3_d202TrainerData
|
||||
ld a, BATTLETOWER_NROFTRAINERS
|
||||
ld a, BATTLETOWER_STREAK_SIZE
|
||||
.loop
|
||||
push af
|
||||
push hl
|
||||
@@ -956,7 +956,7 @@ ResetBattleTowerTrainersSRAM: ; 1706d6 (5c:46d6) BattleTowerAction $1a
|
||||
|
||||
ld a, $ff
|
||||
ld hl, sBTTrainers
|
||||
ld bc, BATTLETOWER_NROFTRAINERS
|
||||
ld bc, BATTLETOWER_STREAK_SIZE
|
||||
call ByteFill
|
||||
|
||||
xor a
|
||||
|
||||
@@ -41,7 +41,7 @@ endc
|
||||
ld a, BANK(sBTTrainers)
|
||||
call GetSRAMBank
|
||||
|
||||
ld c, BATTLETOWER_NROFTRAINERS
|
||||
ld c, BATTLETOWER_STREAK_SIZE
|
||||
ld hl, sBTTrainers
|
||||
.next_trainer
|
||||
ld a, [hli]
|
||||
@@ -93,7 +93,7 @@ endc
|
||||
|
||||
|
||||
Function_LoadRandomBattleTowerPkmn: ; 1f8081
|
||||
ld c, BATTLETOWER_NROFPKMNS
|
||||
ld c, BATTLETOWER_PARTY_SIZE
|
||||
.loop
|
||||
push bc
|
||||
ld a, BANK(sBTPkmnPrevTrainer1)
|
||||
|
||||
@@ -213,7 +213,7 @@ BattleTower_ExecuteJumptable: ; 8b25b
|
||||
|
||||
BattleTower_CheckPartyLengthIs3: ; 8b2bb
|
||||
ld a, [PartyCount]
|
||||
cp BATTLETOWER_NROFPKMNS
|
||||
cp BATTLETOWER_PARTY_SIZE
|
||||
ret
|
||||
; 8b2c1
|
||||
|
||||
@@ -235,13 +235,13 @@ BattleTower_CheckPartyHasThreeMonsThatAreNotEggs: ; 8b2c1
|
||||
cp b
|
||||
ret z
|
||||
ld a, b
|
||||
cp BATTLETOWER_NROFPKMNS
|
||||
cp BATTLETOWER_PARTY_SIZE
|
||||
ret
|
||||
; 8b2da
|
||||
|
||||
Function_PartyCountEq3: ; 8b2da
|
||||
ld a, [PartyCount]
|
||||
cp BATTLETOWER_NROFPKMNS
|
||||
cp BATTLETOWER_PARTY_SIZE
|
||||
ret z
|
||||
scf
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user