Battle Tent Port

This is...most of the stuff necessary for the Battle Tent to work. I've faithfully restored most things so far, including doing a few grammar tweaks.

Main issue is that we get a really strange softlock when the Pokemon selection menu comes up. Not sure why, but point is, it can't progress to the next bit for debugging like this. Committing now to ask for assistance.
This commit is contained in:
Llinos Evans 2023-05-13 02:50:31 +01:00
parent cdb00af812
commit ec61a039b8
23 changed files with 1340 additions and 18 deletions

View file

@ -14,7 +14,15 @@ ReadTrainer:
dec a
ld [hl], a
; check if we are in battle tent since we need a random pokemon data
ld a,[wCurMap]
cp BATTLE_TENT
jr nz, .notBT
farcall ReadBattleTentTrainer
jp .FinishUp
; get the pointer to trainer data for this class
.notBT
ld a, [wTrainerClass] ; get trainer class
dec a
add a