diff options
| author | Catobat <69204835+Catobat@users.noreply.github.com> | 2023-01-07 22:54:36 +0100 |
|---|---|---|
| committer | Catobat <69204835+Catobat@users.noreply.github.com> | 2023-01-07 22:54:36 +0100 |
| commit | fbdd0078cd92dc914fe29ea6ac71778ca814bbcc (patch) | |
| tree | 1d6a4c6dffb48a29679cad842458dec0c489f7db /src/common.c | |
| parent | fba95b9ff778a83706806b15924e63862937d214 (diff) | |
Give unk141 and unk1C1 in SaveFile names
Diffstat (limited to 'src/common.c')
| -rw-r--r-- | src/common.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/common.c b/src/common.c index 909dd944..f92ea874 100644 --- a/src/common.c +++ b/src/common.c @@ -751,13 +751,13 @@ void sub_0801E6C8(u32 kinstoneId) { u32 index; if (kinstoneId - 1 < 100) { for (index = 0; index < 0x80; index++) { - if (kinstoneId == gSave.unk1C1[index]) { - gSave.unk1C1[index] = 0xf1; + if (kinstoneId == gSave.fuserOffers[index]) { + gSave.fuserOffers[index] = 0xf1; } } tmp = sub_08002632(gFuseInfo.ent); - if ((tmp - 1 < 0x7f) && (gSave.unk1C1[tmp] == 0xf1)) { - gSave.unk1C1[tmp] = 0xf2; + if ((tmp - 1 < 0x7f) && (gSave.fuserOffers[tmp] == 0xf1)) { + gSave.fuserOffers[tmp] = 0xf2; } for (index = 0; index < 0x20; index++) { if (kinstoneId == gUnk_03003DF0.array[index].unk_3) { @@ -982,8 +982,8 @@ u32 sub_0801E99C(Entity* entity) { if (GetInventoryValue(ITEM_KINSTONE_BAG) == 0 || fuserData[0] > gSave.global_progress) { return 0; } - offeredFusion = gSave.unk1C1[fuserId]; - fuserProgress = gSave.unk141[fuserId]; + offeredFusion = gSave.fuserOffers[fuserId]; + fuserProgress = gSave.fuserProgress[fuserId]; fuserFusionData = (u8*)(fuserProgress + (u32)fuserData); while (TRUE) { // loop through fusions for this fuser switch (offeredFusion) { @@ -1013,8 +1013,8 @@ u32 sub_0801E99C(Entity* entity) { } offeredFusion = 0xF1; // already completed, try next fusion in the list } - gSave.unk1C1[fuserId] = offeredFusion; - gSave.unk141[fuserId] = fuserProgress; + gSave.fuserOffers[fuserId] = offeredFusion; + gSave.fuserProgress[fuserId] = fuserProgress; randomMood = Random(); fuserStability = fuserData[1]; if (fuserStability <= randomMood % 100) { |
