diff options
author | scnorton <scnorton@biociphers.org> | 2017-09-03 11:06:39 -0400 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2017-09-03 11:06:39 -0400 |
commit | 0849f5637d2aa2b9feebd9dce27cf9cb64754d4a (patch) | |
tree | ee6f5b3903565ec4bb8912fcd85aa789237892f3 /src | |
parent | 927df6fb3e61b94eee3ceffb08ce0e9d5db2c71e (diff) |
sub_804DB2C
Diffstat (limited to 'src')
-rw-r--r-- | src/trade.c | 8 |
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); +} |