summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/events/npc_trade.asm6
-rw-r--r--engine/overworld/player_object.asm1
2 files changed, 4 insertions, 3 deletions
diff --git a/engine/events/npc_trade.asm b/engine/events/npc_trade.asm
index f7ec0f23e..0f9c7d9f5 100644
--- a/engine/events/npc_trade.asm
+++ b/engine/events/npc_trade.asm
@@ -188,10 +188,10 @@ DoNPCTrade:
ld e, NPCTRADE_DIALOG
call GetTradeAttribute
ld a, [hl]
- cp TRADE_DIALOG_COMPLETE
- ld b, RESET_FLAG
+ cp TRADE_DIALOGSET_GIRL
+ ld b, CAUGHT_BY_UNKNOWN
jr c, .incomplete
- ld b, SET_FLAG
+ ld b, CAUGHT_BY_GIRL
.incomplete
farcall SetGiftPartyMonCaughtData
diff --git a/engine/overworld/player_object.asm b/engine/overworld/player_object.asm
index 8bb9d273e..41b8797cf 100644
--- a/engine/overworld/player_object.asm
+++ b/engine/overworld/player_object.asm
@@ -55,6 +55,7 @@ PlayerObjectTemplate:
; A dummy map object used to initialize the player object.
; Shorter than the actual amount copied by two bytes.
; Said bytes seem to be unused.
+_NUM_OBJECT_EVENTS = 0
object_event -4, -4, SPRITE_CHRIS, SPRITEMOVEDATA_PLAYER, 15, 15, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, 0, -1
CopyDECoordsToMapObject::