mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-20 22:28:41 +13:00
Battle Tent: working! (assuming union is ok)
This commit is contained in:
parent
8e03534fc6
commit
f126a26243
2 changed files with 11 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue