You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Organize mobile/battle_tower_*.asm data and code
This commit is contained in:
1671
engine/events/battle_tower/battle_tower.asm
Executable file
1671
engine/events/battle_tower/battle_tower.asm
Executable file
File diff suppressed because it is too large
Load Diff
46
engine/events/battle_tower/get_trainer_class.asm
Normal file
46
engine/events/battle_tower/get_trainer_class.asm
Normal file
@@ -0,0 +1,46 @@
|
||||
GetMobileOTTrainerClass: ; mobile function
|
||||
ld h, b
|
||||
ld l, c
|
||||
call .GetMobileOTTrainerClass
|
||||
ld c, a
|
||||
ret
|
||||
|
||||
.GetMobileOTTrainerClass: ; 4e930
|
||||
ld a, [hli]
|
||||
xor [hl]
|
||||
ld c, a
|
||||
jr z, .skip_male_trainers
|
||||
srl c
|
||||
srl c
|
||||
.male_trainer_loop
|
||||
srl c
|
||||
ld a, c
|
||||
cp MaleTrainersEnd - MaleTrainers - 1
|
||||
jr nc, .male_trainer_loop
|
||||
inc c
|
||||
|
||||
.skip_male_trainers
|
||||
ld a, [de]
|
||||
cp $1
|
||||
ld hl, MaleTrainers
|
||||
jr nz, .finished
|
||||
|
||||
ld hl, FemaleTrainers
|
||||
ld a, c
|
||||
and a
|
||||
jr z, .finished
|
||||
|
||||
.female_trainer_loop
|
||||
srl c
|
||||
ld a, c
|
||||
cp FemaleTrainersEnd - FemaleTrainers - 1
|
||||
jr nc, .female_trainer_loop
|
||||
inc c
|
||||
|
||||
.finished
|
||||
ld b, $0
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
ret
|
||||
|
||||
INCLUDE "data/trainers/gendered_trainers.asm"
|
||||
@@ -207,4 +207,4 @@ Function_LoadRandomBattleTowerPkmn: ; 1f8081
|
||||
ret
|
||||
; 1f814e
|
||||
|
||||
INCLUDE "data/battle_tower.asm"
|
||||
INCLUDE "data/battle_tower/parties.asm"
|
||||
718
engine/events/battle_tower/trainer_text.asm
Executable file
718
engine/events/battle_tower/trainer_text.asm
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user