summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2017-09-03 11:06:39 -0400
committerscnorton <scnorton@biociphers.org>2017-09-03 11:06:39 -0400
commit0849f5637d2aa2b9feebd9dce27cf9cb64754d4a (patch)
treeee6f5b3903565ec4bb8912fcd85aa789237892f3 /src
parent927df6fb3e61b94eee3ceffb08ce0e9d5db2c71e (diff)
sub_804DB2C
Diffstat (limited to 'src')
-rw-r--r--src/trade.c8
1 files changed, 8 insertions, 0 deletions
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);
+}