mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 10:23:34 +12:00
Battle Tent: working! (assuming union is ok)
This commit is contained in:
parent
8e03534fc6
commit
f126a26243
|
@ -2030,12 +2030,13 @@ UNION
|
|||
wViridianForestCurScript:: db
|
||||
wMuseum1FCurScript:: db
|
||||
wRoute13CurScript:: db
|
||||
NEXTU
|
||||
wBTWinnings:: ds 3
|
||||
ENDU
|
||||
wRoute14CurScript:: db
|
||||
wRoute17CurScript:: db
|
||||
wRoute19CurScript:: db
|
||||
NEXTU
|
||||
wBTWinnings:: ds 3
|
||||
wBTBattleReward:: ds 3
|
||||
ENDU
|
||||
wRoute21CurScript:: db
|
||||
wSafariZoneGateCurScript:: db
|
||||
wRockTunnelB1FCurScript:: db
|
||||
|
|
|
@ -342,7 +342,7 @@ BattleTent_AfterBattle:
|
|||
jr z, .max ; cap out at 255 wins
|
||||
inc a
|
||||
ld [wBTStreakCnt], a ; increment win counter
|
||||
ld hl, BTBattleReward + 2
|
||||
ld hl, wBTBattleReward + 2
|
||||
ld de, wBTWinnings + 2
|
||||
ld c, $3
|
||||
predef AddBCDPredef ; for some reason this is maxing out the counter
|
||||
|
@ -588,6 +588,12 @@ BattleTentGuy:
|
|||
ld [wBTWinnings], a
|
||||
ld [wBTWinnings+1], a
|
||||
ld [wBTWinnings+2], a
|
||||
ld a, [BTBattleReward]
|
||||
ld [wBTBattleReward], a
|
||||
ld a, [BTBattleReward+1]
|
||||
ld [wBTBattleReward+1], a
|
||||
ld a, [BTBattleReward+2]
|
||||
ld [wBTBattleReward+2], a
|
||||
ld a, 1
|
||||
ld [wBattleTentCurScript], a
|
||||
jp TextScriptEnd
|
||||
|
|
Loading…
Reference in a new issue