From f37aecedc827f8593da856420441d25a52663a5f Mon Sep 17 00:00:00 2001 From: Zazsona <40435178+Zazsona@users.noreply.github.com> Date: Thu, 15 Aug 2024 20:23:54 +0100 Subject: [PATCH] Simplify FQNs for ExtremeGearModel --- .../CustomGearController/CustomGearCodePatcher.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Riders.Tweakbox/Controllers/CustomGearController/CustomGearCodePatcher.cs b/Riders.Tweakbox/Controllers/CustomGearController/CustomGearCodePatcher.cs index 6fa11d7..b1164e7 100644 --- a/Riders.Tweakbox/Controllers/CustomGearController/CustomGearCodePatcher.cs +++ b/Riders.Tweakbox/Controllers/CustomGearController/CustomGearCodePatcher.cs @@ -212,7 +212,7 @@ private void LoadUnlockedGearsFromSave() return; // Reference to the vanilla location for storing gear unlock state - RefFixedArrayPtr vanillaUnlockedGearModels = new RefFixedArrayPtr((ulong)0x017BE4E8, (int)Sewer56.SonicRiders.Structures.Enums.ExtremeGearModel.Cannonball + 1); + RefFixedArrayPtr vanillaUnlockedGearModels = new RefFixedArrayPtr((ulong)0x017BE4E8, (int)ExtremeGearModel.Cannonball + 1); for (var x = 0; x < vanillaUnlockedGearModels.Count; x++) { bool isUnlocked = vanillaUnlockedGearModels[x]; @@ -220,11 +220,11 @@ private void LoadUnlockedGearsFromSave() } // Unlock any remaining custom gears - int firstFreeGearModelSlot = (int)Sewer56.SonicRiders.Structures.Enums.ExtremeGearModel.Berserker + 1; + int firstFreeGearModelSlot = (int)ExtremeGearModel.Berserker + 1; for (var x = firstFreeGearModelSlot; x < State.UnlockedGearModels.Count; x++) { // If it's defined in the Enum, it's a Vanilla gear, thus managed by the save. - if (Enum.IsDefined(typeof(Sewer56.SonicRiders.Structures.Enums.ExtremeGearModel), (byte) x)) + if (Enum.IsDefined(typeof(ExtremeGearModel), (byte) x)) continue; State.UnlockedGearModels[x] = true;