mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
Corrected gym scaling for Brock
Thanks to Chatot4444!
This commit is contained in:
parent
f582550f55
commit
75b59760df
2 changed files with 7 additions and 1 deletions
|
|
@ -123,7 +123,12 @@ BrockText:
|
|||
; gym scaling spaghetti code begins here - remove initial parameters as we're making our own
|
||||
ld a, OPP_BROCK
|
||||
ld [wCurOpponent], a
|
||||
ld a, NUM_BADGES + 1 ; Picking the team based on badge count. Need +1 so it loads the right team: remember, you're fighting for the badge!
|
||||
|
||||
ld hl, wObtainedBadges ; Picking the team based on badge count. Need +1 so it loads the right team: remember, you're fighting for the badge! Thanks to Chatot4444 for the help.
|
||||
ld b, 1
|
||||
call CountSetBits
|
||||
ld a, [wNumSetBits]
|
||||
inc a
|
||||
|
||||
ld [wTrainerNo], a
|
||||
ld a, 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue