mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
Merge branch 'master' of https://github.com/PlagueVonKarma/kep-hack
This commit is contained in:
commit
56793e1d11
|
@ -57,9 +57,9 @@ DoInGameTradeDialogue:
|
||||||
jr nz, .printText
|
jr nz, .printText
|
||||||
call InGameTrade_DoTrade
|
call InGameTrade_DoTrade
|
||||||
jr c, .printText
|
jr c, .printText
|
||||||
ld a, [wInGameTradeGiveMonSpecies]
|
ld a, [wInGameTradeGiveMonSpecies]; for trader
|
||||||
cp NO_MON
|
cp NO_MON ; for trader
|
||||||
jr z, .printText
|
jr z, .printText ; for trader
|
||||||
ld hl, TradedForText
|
ld hl, TradedForText
|
||||||
call PrintText
|
call PrintText
|
||||||
.printText
|
.printText
|
||||||
|
@ -101,23 +101,23 @@ InGameTrade_DoTrade:
|
||||||
ld a, $1
|
ld a, $1
|
||||||
jp c, .tradeFailed ; jump if the player didn't select a pokemon
|
jp c, .tradeFailed ; jump if the player didn't select a pokemon
|
||||||
ld a, [wInGameTradeGiveMonSpecies]
|
ld a, [wInGameTradeGiveMonSpecies]
|
||||||
cp NO_MON
|
cp NO_MON ; for trader
|
||||||
jr z, .skip_mon_check
|
jr z, .skip_mon_check ; for trader
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [wcf91]
|
ld a, [wcf91]
|
||||||
cp b
|
cp b
|
||||||
ld a, $2
|
ld a, $2
|
||||||
jp nz, .tradeFailed ; jump if the selected mon's species is not the required one
|
jp nz, .tradeFailed ; jump if the selected mon's species is not the required one - changed for trader
|
||||||
.skip_mon_check
|
.skip_mon_check ; for trader
|
||||||
ld a, [wWhichPokemon]
|
ld a, [wWhichPokemon]
|
||||||
ld hl, wPartyMon1Level
|
ld hl, wPartyMon1Level
|
||||||
ld bc, wPartyMon2 - wPartyMon1
|
ld bc, wPartyMon2 - wPartyMon1
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [wCurEnemyLVL], a
|
ld [wCurEnemyLVL], a
|
||||||
ld a, [wInGameTradeGiveMonSpecies]
|
ld a, [wInGameTradeGiveMonSpecies] ; for trader
|
||||||
cp NO_MON
|
cp NO_MON ; for trader
|
||||||
jr z, .skip_flag_set
|
jr z, .skip_flag_set ; for trader
|
||||||
ld hl, wCompletedInGameTradeFlags
|
ld hl, wCompletedInGameTradeFlags
|
||||||
ld a, [wWhichTrade]
|
ld a, [wWhichTrade]
|
||||||
ld c, a
|
ld c, a
|
||||||
|
@ -131,14 +131,14 @@ InGameTrade_DoTrade:
|
||||||
ld a, [wCurEnemyLVL]
|
ld a, [wCurEnemyLVL]
|
||||||
push af
|
push af
|
||||||
call LoadHpBarAndStatusTilePatterns
|
call LoadHpBarAndStatusTilePatterns
|
||||||
ld a, [wInGameTradeGiveMonSpecies]
|
ld a, [wInGameTradeGiveMonSpecies] ; for trader
|
||||||
cp NO_MON
|
cp NO_MON ; for trader
|
||||||
jr nz, .normal_in_game_trade_data
|
jr nz, .normal_in_game_trade_data ; for trader
|
||||||
call TradeSelf_PrepareTradeData
|
call TradeSelf_PrepareTradeData ; for trader
|
||||||
jr .self_trade_data
|
jr .self_trade_data ; for trader
|
||||||
.normal_in_game_trade_data
|
.normal_in_game_trade_data ; for trader
|
||||||
call InGameTrade_PrepareTradeData
|
call InGameTrade_PrepareTradeData
|
||||||
.self_trade_data
|
.self_trade_data ; for trader
|
||||||
predef InternalClockTradeAnim
|
predef InternalClockTradeAnim
|
||||||
pop af
|
pop af
|
||||||
ld [wCurEnemyLVL], a
|
ld [wCurEnemyLVL], a
|
||||||
|
@ -148,9 +148,9 @@ InGameTrade_DoTrade:
|
||||||
ld [wcf91], a
|
ld [wcf91], a
|
||||||
xor a
|
xor a
|
||||||
push af
|
push af
|
||||||
ld a, [wInGameTradeGiveMonSpecies]
|
ld a, [wInGameTradeGiveMonSpecies] ; for trader
|
||||||
cp NO_MON
|
cp NO_MON ; for trader
|
||||||
jr z, .skip_swap_mons
|
jr z, .skip_swap_mons ; for trader
|
||||||
pop af
|
pop af
|
||||||
ld [wRemoveMonFromBox], a
|
ld [wRemoveMonFromBox], a
|
||||||
call RemovePokemon
|
call RemovePokemon
|
||||||
|
|
Loading…
Reference in a new issue