summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjiangzhengwenjz <jiangzhengwenjzw@qq.com>2019-12-24 04:25:49 +0800
committerjiangzhengwenjz <jiangzhengwenjzw@qq.com>2020-01-09 12:38:56 +0800
commita436d79177fc54927d14cc2114802dee74176a6b (patch)
tree312b3166228ef50c039ddfbdf6c070c196e6f81b /src
parent7e2330e7fd01f5eebb7fdeb157d3dd29b4da3f0f (diff)
partially sync with knizz's documentation
Diffstat (limited to 'src')
-rw-r--r--src/trade.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/trade.c b/src/trade.c
index 2f48928ec..10ed51d69 100644
--- a/src/trade.c
+++ b/src/trade.c
@@ -2765,10 +2765,10 @@ static bool32 IsDeoxysOrMewUntradable(u16 species, bool8 isObedientBitSet)
int GetUnionRoomTradeMessageId(struct UnkLinkRfuStruct_02022B14Substruct a0, struct UnkLinkRfuStruct_02022B14Substruct a1, u16 species1, u16 species2, u8 type, u16 species3, u8 isObedientBitSet)
{
- u8 r9 = a0.unk_01_0;
- u8 r4 = a0.unk_00_7;
- u8 r10 = a1.unk_01_0;
- u8 r0 = a1.unk_00_7;
+ u8 r9 = a0.hasNationalDex;
+ u8 r4 = a0.isChampion;
+ u8 r10 = a1.hasNationalDex;
+ u8 r0 = a1.isChampion;
u8 r1 = a1.unk_01_2;
u8 r2;
@@ -2845,7 +2845,7 @@ int GetUnionRoomTradeMessageId(struct UnkLinkRfuStruct_02022B14Substruct a0, str
int CanRegisterMonForTradingBoard(struct UnkLinkRfuStruct_02022B14Substruct a0, u16 species, u16 a2, u8 a3)
{
- u8 canTradeEggAndNational = a0.unk_01_0;
+ u8 canTradeEggAndNational = a0.hasNationalDex;
if (IsDeoxysOrMewUntradable(a2, a3))
{