using System.Collections.Generic; using System.Reflection; using Aki.PrePatch; using Aki.Reflection.Patching; using EFT; namespace Aki.Custom.Patches { public class AddSptBotSettingsPatch : ModulePatch { protected override MethodBase GetTargetMethod() { return typeof(BotSettingsRepoClass).GetMethod("Init"); } [PatchPrefix] private static void PatchPrefix(ref Dictionary ___dictionary_0) { if (___dictionary_0.ContainsKey((WildSpawnType)AkiBotsPrePatcher.sptUsecValue)) { return; } ___dictionary_0.Add((WildSpawnType)AkiBotsPrePatcher.sptUsecValue, new BotSettingsValuesClass(false, false, false, EPlayerSide.Savage.ToStringNoBox())); ___dictionary_0.Add((WildSpawnType)AkiBotsPrePatcher.sptBearValue, new BotSettingsValuesClass(false, false, false, EPlayerSide.Savage.ToStringNoBox())); } } }