Sync more with pokeyellow

This commit is contained in:
Rangi 2020-11-06 10:33:58 -05:00
parent d3f1352875
commit 13d4d533f7
19 changed files with 35 additions and 41 deletions

View file

@ -1132,22 +1132,22 @@ ChooseNextMon:
HandlePlayerBlackOut:
ld a, [wLinkState]
cp LINK_STATE_BATTLING
jr z, .notSony1Battle
jr z, .notRival1Battle
ld a, [wCurOpponent]
cp OPP_RIVAL1
jr nz, .notSony1Battle
hlcoord 0, 0 ; sony 1 battle
jr nz, .notRival1Battle
hlcoord 0, 0 ; rival 1 battle
lb bc, 8, 21
call ClearScreenArea
call ScrollTrainerPicAfterBattle
ld c, 40
call DelayFrames
ld hl, Sony1WinText
ld hl, Rival1WinText
call PrintText
ld a, [wCurMap]
cp OAKS_LAB
ret z ; starter battle in oak's lab: don't black out
.notSony1Battle
.notRival1Battle
ld b, SET_PAL_BATTLE_BLACK
call RunPaletteCommand
ld hl, PlayerBlackedOutText2
@ -1164,8 +1164,8 @@ HandlePlayerBlackOut:
scf
ret
Sony1WinText:
text_far _Sony1WinText
Rival1WinText:
text_far _Rival1WinText
text_end
PlayerBlackedOutText2:

View file

@ -394,7 +394,7 @@ SabrinaAI:
ret nc
jp AIUseHyperPotion
Sony2AI:
Rival2AI:
cp 13 percent - 1
ret nc
ld a, 5
@ -402,7 +402,7 @@ Sony2AI:
ret nc
jp AIUsePotion
Sony3AI:
Rival3AI:
cp 13 percent - 1
ret nc
ld a, 5