using System.Reflection; using SPT.Reflection.Patching; namespace SPT.SinglePlayer.Patches.Progression { /// /// BSG have disabled notifications for local raids, set updateAchievements in the achievement controller to always be true /// This enables the achievement notifications and the client to save completed achievement data into profile.Achievements /// public class MidRaidAchievementChangePatch : ModulePatch { protected override MethodBase GetTargetMethod() { return typeof(AchievementControllerClass).GetConstructors()[0]; } [PatchPrefix] private static bool PatchPrefix(ref bool updateAchievements) { updateAchievements = true; return true; // Do original method } } }