diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2018-10-11 10:13:08 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2018-10-11 10:13:08 -0400 |
commit | 230f58b77dae53c2934cafbff6ef96807232a9d0 (patch) | |
tree | 7eb2f07a4b8184fa062b2078ae3a12272d54bbe5 /src | |
parent | 7e35bd4266a9573a6fbc6d73efb5175a44ba5b93 (diff) |
through sub_8110E20
Diffstat (limited to 'src')
-rw-r--r-- | src/quest_log.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/quest_log.c b/src/quest_log.c index 782e0efe4..08b504057 100644 --- a/src/quest_log.c +++ b/src/quest_log.c @@ -392,3 +392,35 @@ void sub_8110BE8(u8 a0) "\t.pool"); } #endif // NONMATCHING + +void sub_8110D48(u8 a0) +{ + struct QuestLog * questLog = &gSaveBlock1Ptr->questLog[a0]; + + CpuCopy16(gSaveBlock1Ptr->flags, questLog->unk_148, 0x120); + CpuCopy16(gSaveBlock1Ptr->vars, questLog->unk_268, 0x200); +} + +void sub_8110D94(void) +{ + u16 i, j; + u16 sp0[4]; + + for (i = 0; i < 4; i++) + { + sp0[i] = 0; + for (j = 0; j < 16; j++) + { + if (gSaveBlock1Ptr->trainerRematches[16 * i + j]) + { + sp0[i] += (1 << j); + } + } + VarSet(VAR_0x40AA + i, sp0[i]); + } +} + +void sub_8110E20(void) +{ + VarSet(VAR_0x40AE, gSaveBlock1Ptr->mapDataId); +} |