From e953de545d43c864ca24a850c8b44ecfe1e3c9d9 Mon Sep 17 00:00:00 2001 From: Terkoiz Date: Wed, 27 Dec 2023 21:45:33 +0200 Subject: [PATCH] Fixed PostRaidHealingPricePatch --- .../Patches/RaidFix/PostRaidHealingPricePatch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/Aki.SinglePlayer/Patches/RaidFix/PostRaidHealingPricePatch.cs b/project/Aki.SinglePlayer/Patches/RaidFix/PostRaidHealingPricePatch.cs index 99f774f..af35958 100644 --- a/project/Aki.SinglePlayer/Patches/RaidFix/PostRaidHealingPricePatch.cs +++ b/project/Aki.SinglePlayer/Patches/RaidFix/PostRaidHealingPricePatch.cs @@ -35,7 +35,8 @@ namespace Aki.SinglePlayer.Patches.RaidFix throw new IndexOutOfRangeException($"Loyalty level {loyaltyLevel} not found."); } - Traverse.Create(__instance).Property("CurrentLoyalty").SetValue(loyaltyLevelSettings.Value); + // Backing field of the "CurrentLoyalty" property + Traverse.Create(__instance).Field("k__BackingField").SetValue(loyaltyLevelSettings.Value); } } } \ No newline at end of file