From 0849f5637d2aa2b9feebd9dce27cf9cb64754d4a Mon Sep 17 00:00:00 2001 From: scnorton Date: Sun, 3 Sep 2017 11:06:39 -0400 Subject: sub_804DB2C --- src/trade.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/trade.c b/src/trade.c index 0eb05bb52..6b85ecb05 100644 --- a/src/trade.c +++ b/src/trade.c @@ -24,6 +24,7 @@ #include "rom4.h" #include "rom_8077ABC.h" #include "daycare.h" +#include "event_data.h" #include "trade.h" #ifdef ENGLISH @@ -3155,3 +3156,10 @@ asm(".section .text.sub_804DAD4"); arg0->species = trade->species; arg0->heldItem = trade->heldItem; } + +u16 sub_804DB2C(void) +{ + if (GetMonData(&gPlayerParty[gSpecialVar_0x8005], MON_DATA_IS_EGG)) + return SPECIES_NONE; + return GetMonData(&gPlayerParty[gSpecialVar_0x8005], MON_DATA_SPECIES); +} -- cgit v1.2.3