0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00

Fixed PostRaidHealingPricePatch

This commit is contained in:
Terkoiz 2023-12-27 21:45:33 +02:00
parent eaf0c40d46
commit e953de545d

View File

@ -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("<CurrentLoyalty>k__BackingField").SetValue(loyaltyLevelSettings.Value);
}
}
}