mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
commit
a1e52924d0
|
@ -177,6 +177,18 @@ StartMenu_Pokemon::
|
|||
.strength
|
||||
bit BIT_RAINBOWBADGE, a
|
||||
jp z, .newBadgeRequired
|
||||
ld a, [wWhichPokemon]
|
||||
ld hl, wPartySpecies
|
||||
; bumping hl by a, need to make sure carry happens
|
||||
ld c, a
|
||||
ld a, l
|
||||
add a, c
|
||||
ld l, a
|
||||
jr nc, .strengthNoCarry
|
||||
inc h
|
||||
.strengthNoCarry
|
||||
ld a, [hl]
|
||||
ld [wcf91], a
|
||||
predef PrintStrengthTxt
|
||||
call GBPalWhiteOutWithDelay3
|
||||
jp .goBackToMap
|
||||
|
|
|
@ -30,6 +30,17 @@ BoulderText::
|
|||
pop af
|
||||
ld [wWhichPokemon], a
|
||||
call GetPartyMonName2
|
||||
ld a, [wWhichPokemon]
|
||||
ld hl, wPartySpecies
|
||||
ld c, a
|
||||
ld a, l
|
||||
add a, c
|
||||
ld l, a
|
||||
jr nc, .noCarry
|
||||
inc h
|
||||
.noCarry
|
||||
ld a, [hl]
|
||||
ld [wcf91], a
|
||||
predef PrintStrengthTxt
|
||||
.done
|
||||
jp TextScriptEnd
|
||||
|
|
Loading…
Reference in a new issue