diff options
| author | Caladius <Caladius@users.noreply.github.com> | 2026-09-14 12:55:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-14 16:55:22 +0000 |
| commit | 43ea3328744323b96a04886693f02501fbeab27b (patch) | |
| tree | a12444004292dae2663dc38dcdbe8069afc07d5d /soh/src/code | |
| parent | 97fb13cbee0e2b484830c0c8792f78116b97703f (diff) | |
[Enhancement] Time Splits v2 (#5839)
This aims to port over the Time Splits feature from 2Ship as it is cleaner & more robust.
New to this is the ability to finally compare splits from a second list.
Old Save data will now be converted to the new format automatically. Once it converts the data, the old save file will be renamed with a new ".backup" extension.
Co-authored-by: serprex <159546+serprex@users.noreply.github.com>
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_parameter.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/soh/src/code/z_parameter.c b/soh/src/code/z_parameter.c index 69fd6ded3..402b9362b 100644 --- a/soh/src/code/z_parameter.c +++ b/soh/src/code/z_parameter.c @@ -8,7 +8,6 @@ #include "soh/Enhancements/gameplaystats.h" #include "soh/Enhancements/custom-message/CustomMessageInterfaceAddon.h" #include "soh/Enhancements/cosmetics/cosmeticsTypes.h" -#include "soh/Enhancements/enhancementTypes.h" #include "soh/ShipUtils.h" #include <string.h> @@ -1839,7 +1838,9 @@ u8 Return_Item(u8 itemID, ModIndex modId, ItemID returnItem) { RandomizerGet randomizerGet = RetrieveRandomizerGetFromItemID(itemID); if (randomizerGet != RG_MAX) { // Vanilla ItemID with an associated RandomizerGet (These are items in extendedVanillaGetItemTable) - return Return_Item_Entry(ItemTable_RetrieveEntry(MOD_RANDOMIZER, randomizerGet), returnItem); + GetItemEntry itemEntry = ItemTable_RetrieveEntry(MOD_RANDOMIZER, randomizerGet); + itemEntry.modIndex = modId; + return Return_Item_Entry(itemEntry, returnItem); } // All randomizer items should go through Randomizer_Item_Give, so this should never be reached |
