diff --git a/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs b/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs index 00e6256..1c4af7d 100644 --- a/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs +++ b/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs @@ -26,7 +26,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static bool PatchPrefix(ref BotsGroup __result, IBotGame ____game, DeadBodiesController ____deadBodiesController, BotOwner bot, BotZone zone) + public static bool PatchPrefix(ref BotsGroup __result, IBotGame ____game, DeadBodiesController ____deadBodiesController, BotOwner bot, BotZone zone) { if (!TraitorChancePercent.HasValue) { diff --git a/project/SPT.Custom/Patches/AllScavsHostileHostileToPlayerScavPatch.cs b/project/SPT.Custom/Patches/AllScavsHostileHostileToPlayerScavPatch.cs index cdf0291..aca264c 100644 --- a/project/SPT.Custom/Patches/AllScavsHostileHostileToPlayerScavPatch.cs +++ b/project/SPT.Custom/Patches/AllScavsHostileHostileToPlayerScavPatch.cs @@ -19,7 +19,7 @@ namespace SPT.Custom.Patches /// This should fix that. /// [PatchPrefix] - private static bool PatchPrefix(BotsController __instance, IPlayer aggressor, IPlayer groupOwner, IPlayer target) + public static bool PatchPrefix(BotsController __instance, IPlayer aggressor, IPlayer groupOwner, IPlayer target) { if (!groupOwner.IsAI) { diff --git a/project/SPT.Custom/Patches/BetaLogoPatch.cs b/project/SPT.Custom/Patches/BetaLogoPatch.cs index d85cb56..9f94a92 100644 --- a/project/SPT.Custom/Patches/BetaLogoPatch.cs +++ b/project/SPT.Custom/Patches/BetaLogoPatch.cs @@ -28,7 +28,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static void PatchPrefix(Profile profile) + public static void PatchPrefix(Profile profile) { MonoBehaviourSingleton.Instance.SetWatermarkStatus(profile, true); } @@ -42,7 +42,7 @@ namespace SPT.Custom.Patches } [PatchPostfix] - private static void PatchPostfix(ref TextMeshProUGUI ____label, Profile ___profile_0) + public static void PatchPostfix(ref TextMeshProUGUI ____label, Profile ___profile_0) { ____label.text = $"{MenuNotificationManager.commitHash}"; } @@ -57,7 +57,7 @@ namespace SPT.Custom.Patches // Prefix so the logic isn't being duplicated. [PatchPrefix] - private static bool PatchPrefix(int screenHeight, int screenWidth, int rectHeight, int rectWidth, ref Vector2 __result) + public static bool PatchPrefix(int screenHeight, int screenWidth, int rectHeight, int rectWidth, ref Vector2 __result) { System.Random random = new System.Random(); diff --git a/project/SPT.Custom/Patches/BossSpawnChancePatch.cs b/project/SPT.Custom/Patches/BossSpawnChancePatch.cs index 85dcc22..185e0d9 100644 --- a/project/SPT.Custom/Patches/BossSpawnChancePatch.cs +++ b/project/SPT.Custom/Patches/BossSpawnChancePatch.cs @@ -35,13 +35,13 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static void PatchPrefix(BossLocationSpawn[] bossLocationSpawn) + public static void PatchPrefix(BossLocationSpawn[] bossLocationSpawn) { _bossSpawnPercent = bossLocationSpawn.Select(s => s.BossChance).ToArray(); } [PatchPostfix] - private static void PatchPostfix(ref BossLocationSpawn[] __result) + public static void PatchPostfix(ref BossLocationSpawn[] __result) { if (__result.Length != _bossSpawnPercent.Length) { diff --git a/project/SPT.Custom/Patches/BotDifficultyPatch.cs b/project/SPT.Custom/Patches/BotDifficultyPatch.cs index bffffa4..ce701bf 100644 --- a/project/SPT.Custom/Patches/BotDifficultyPatch.cs +++ b/project/SPT.Custom/Patches/BotDifficultyPatch.cs @@ -19,7 +19,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static bool PatchPrefix(ref string __result, BotDifficulty botDifficulty, WildSpawnType role) + public static bool PatchPrefix(ref string __result, BotDifficulty botDifficulty, WildSpawnType role) { __result = DifficultyManager.Get(botDifficulty, role); var resultIsNullEmpty = string.IsNullOrWhiteSpace(__result); diff --git a/project/SPT.Custom/Patches/CopyPmcQuestsToPlayerScavPatch.cs b/project/SPT.Custom/Patches/CopyPmcQuestsToPlayerScavPatch.cs index 603bf11..6098649 100644 --- a/project/SPT.Custom/Patches/CopyPmcQuestsToPlayerScavPatch.cs +++ b/project/SPT.Custom/Patches/CopyPmcQuestsToPlayerScavPatch.cs @@ -20,7 +20,7 @@ namespace SPT.Custom.Patches } [PatchPostfix] - private static void PatchPostfix() + public static void PatchPostfix() { var pmcProfile = PatchConstants.BackEndSession.Profile; var scavProfile = PatchConstants.BackEndSession.ProfileOfPet; diff --git a/project/SPT.Custom/Patches/CoreDifficultyPatch.cs b/project/SPT.Custom/Patches/CoreDifficultyPatch.cs index e4c5609..f6a2849 100644 --- a/project/SPT.Custom/Patches/CoreDifficultyPatch.cs +++ b/project/SPT.Custom/Patches/CoreDifficultyPatch.cs @@ -7,26 +7,26 @@ using SPT.Custom.Utils; namespace SPT.Custom.Patches { public class CoreDifficultyPatch : ModulePatch - { + { protected override MethodBase GetTargetMethod() { - var methodName = "LoadCoreByString"; - var flags = BindingFlags.Public | BindingFlags.Static; + var methodName = "LoadCoreByString"; + var flags = BindingFlags.Public | BindingFlags.Static; - return PatchConstants.EftTypes.SingleCustom(x => x.GetMethod(methodName, flags) != null) - .GetMethod(methodName, flags); - } + return PatchConstants.EftTypes.SingleCustom(x => x.GetMethod(methodName, flags) != null) + .GetMethod(methodName, flags); + } - [PatchPrefix] - private static bool PatchPrefix(ref string __result) - { - // fetch all bot difficulties to be used in BotDifficultyPatch - // this is called here since core difficulties are fetched before bot-specific difficulties are - DifficultyManager.Update(); + [PatchPrefix] + public static bool PatchPrefix(ref string __result) + { + // fetch all bot difficulties to be used in BotDifficultyPatch + // this is called here since core difficulties are fetched before bot-specific difficulties are + DifficultyManager.Update(); - // update core difficulty + // update core difficulty __result = RequestHandler.GetJson("/singleplayer/settings/bot/difficulty/core/core"); - return string.IsNullOrWhiteSpace(__result); + return string.IsNullOrWhiteSpace(__result); } } -} +} \ No newline at end of file diff --git a/project/SPT.Custom/Patches/CustomAiPatch.cs b/project/SPT.Custom/Patches/CustomAiPatch.cs index 8f3ed69..48f7784 100644 --- a/project/SPT.Custom/Patches/CustomAiPatch.cs +++ b/project/SPT.Custom/Patches/CustomAiPatch.cs @@ -37,7 +37,7 @@ namespace SPT.Custom.Patches /// StandartBotBrain /// botOwner_0 property [PatchPrefix] - private static bool PatchPrefix(out WildSpawnType __state, StandartBotBrain __instance, BotOwner ___botOwner_0) + public static bool PatchPrefix(out WildSpawnType __state, StandartBotBrain __instance, BotOwner ___botOwner_0) { ___botOwner_0.Profile.Info.Settings.Role = FixAssaultGroupPmcsRole(___botOwner_0); __state = ___botOwner_0.Profile.Info.Settings.Role; // Store original type in state param to allow access in PatchPostFix() @@ -130,7 +130,7 @@ namespace SPT.Custom.Patches /// Saved state from prefix patch /// botOwner_0 property [PatchPostfix] - private static void PatchPostFix(WildSpawnType __state, BotOwner ___botOwner_0) + public static void PatchPostFix(WildSpawnType __state, BotOwner ___botOwner_0) { if (AiHelpers.BotIsSptPmc(__state, ___botOwner_0)) { diff --git a/project/SPT.Custom/Patches/DisableGameModeAdjustButtonPatch.cs b/project/SPT.Custom/Patches/DisableGameModeAdjustButtonPatch.cs index 64836a1..a654d46 100644 --- a/project/SPT.Custom/Patches/DisableGameModeAdjustButtonPatch.cs +++ b/project/SPT.Custom/Patches/DisableGameModeAdjustButtonPatch.cs @@ -18,7 +18,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static bool PatchPrefix(ESessionMode sessionMode, Profile profile, ref GameObject ____notAvailableState) + public static bool PatchPrefix(ESessionMode sessionMode, Profile profile, ref GameObject ____notAvailableState) { ____notAvailableState.SetActive(false); return false; diff --git a/project/SPT.Custom/Patches/DisableNonHalloweenExitsDuringEventPatch.cs b/project/SPT.Custom/Patches/DisableNonHalloweenExitsDuringEventPatch.cs index 86844d5..ae2a2ab 100644 --- a/project/SPT.Custom/Patches/DisableNonHalloweenExitsDuringEventPatch.cs +++ b/project/SPT.Custom/Patches/DisableNonHalloweenExitsDuringEventPatch.cs @@ -18,7 +18,7 @@ namespace SPT.Custom.Patches } [PatchPostfix] - private static void PatchPostfix() + public static void PatchPostfix() { GameWorld gameWorld = Singleton.Instance; Random random = new Random(); diff --git a/project/SPT.Custom/Patches/EasyAssetsPatch.cs b/project/SPT.Custom/Patches/EasyAssetsPatch.cs index 090f383..a4025a4 100644 --- a/project/SPT.Custom/Patches/EasyAssetsPatch.cs +++ b/project/SPT.Custom/Patches/EasyAssetsPatch.cs @@ -40,7 +40,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static bool PatchPrefix(ref Task __result, GameObject gameObject, [CanBeNull] IBundleLock bundleLock, string defaultKey, string rootPath, + public static bool PatchPrefix(ref Task __result, GameObject gameObject, [CanBeNull] IBundleLock bundleLock, string defaultKey, string rootPath, string platformName, [CanBeNull] Func shouldExclude, [CanBeNull] Func bundleCheck) { var easyAsset = gameObject.AddComponent(); diff --git a/project/SPT.Custom/Patches/EasyBundlePatch.cs b/project/SPT.Custom/Patches/EasyBundlePatch.cs index 3bfa0c5..0d478fb 100644 --- a/project/SPT.Custom/Patches/EasyBundlePatch.cs +++ b/project/SPT.Custom/Patches/EasyBundlePatch.cs @@ -25,7 +25,7 @@ namespace SPT.Custom.Patches } [PatchPostfix] - private static void PatchPostfix(object __instance, string key, string rootPath, CompatibilityAssetBundleManifest manifest, IBundleLock bundleLock) + public static void PatchPostfix(object __instance, string key, string rootPath, CompatibilityAssetBundleManifest manifest, IBundleLock bundleLock) { var filepath = rootPath + key; var dependencies = manifest.GetDirectDependencies(key) ?? Array.Empty(); diff --git a/project/SPT.Custom/Patches/FixBotgroupMarkofTheUnknown.cs b/project/SPT.Custom/Patches/FixBotgroupMarkofTheUnknown.cs index 501f656..89a8e7a 100644 --- a/project/SPT.Custom/Patches/FixBotgroupMarkofTheUnknown.cs +++ b/project/SPT.Custom/Patches/FixBotgroupMarkofTheUnknown.cs @@ -19,7 +19,7 @@ namespace SPT.Custom.Patches return AccessTools.Method(typeof(BotsGroupMarkOfUnknown), nameof(BotsGroupMarkOfUnknown.Dispose)); } [PatchPrefix] - private static bool PatchPrefix(BotsGroup ____groups) + public static bool PatchPrefix(BotsGroup ____groups) { if (____groups == null) { diff --git a/project/SPT.Custom/Patches/FixPmcSpawnParamsNullErrorPatch.cs b/project/SPT.Custom/Patches/FixPmcSpawnParamsNullErrorPatch.cs index 087cd88..6f64699 100644 --- a/project/SPT.Custom/Patches/FixPmcSpawnParamsNullErrorPatch.cs +++ b/project/SPT.Custom/Patches/FixPmcSpawnParamsNullErrorPatch.cs @@ -13,7 +13,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static void PatchPrefix(BotOwner bot) + public static void PatchPrefix(BotOwner bot) { // Is a boss and not a follower and not a PMC if (!bot.Profile.Info.Settings.IsBoss() && !CustomAI.AiHelpers.BotIsSptPmc(bot.Profile.Info.Settings.Role, bot)) diff --git a/project/SPT.Custom/Patches/IsEnemyPatch.cs b/project/SPT.Custom/Patches/IsEnemyPatch.cs index d5428f7..35a6caf 100644 --- a/project/SPT.Custom/Patches/IsEnemyPatch.cs +++ b/project/SPT.Custom/Patches/IsEnemyPatch.cs @@ -20,7 +20,7 @@ namespace SPT.Custom.Patches /// Needed to ensure bot checks the enemy side, not just its botType /// [PatchPrefix] - private static bool PatchPrefix(ref bool __result, BotsGroup __instance, IPlayer requester) + public static bool PatchPrefix(ref bool __result, BotsGroup __instance, IPlayer requester) { if (requester == null) { diff --git a/project/SPT.Custom/Patches/MergeScavPmcQuestsOnInventoryLoadPatch.cs b/project/SPT.Custom/Patches/MergeScavPmcQuestsOnInventoryLoadPatch.cs index d969a27..e0fde20 100644 --- a/project/SPT.Custom/Patches/MergeScavPmcQuestsOnInventoryLoadPatch.cs +++ b/project/SPT.Custom/Patches/MergeScavPmcQuestsOnInventoryLoadPatch.cs @@ -23,7 +23,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static void PatchPreFix(ref IEnumerable quests) + public static void PatchPreFix(ref IEnumerable quests) { var gameWorld = Singleton.Instance; diff --git a/project/SPT.Custom/Patches/PmcTakesAgesToHealLimbsPatch.cs b/project/SPT.Custom/Patches/PmcTakesAgesToHealLimbsPatch.cs index 910e0d7..8da2058 100644 --- a/project/SPT.Custom/Patches/PmcTakesAgesToHealLimbsPatch.cs +++ b/project/SPT.Custom/Patches/PmcTakesAgesToHealLimbsPatch.cs @@ -40,7 +40,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static bool PatchPrefix(BotOwner ___botOwner_0) + public static bool PatchPrefix(BotOwner ___botOwner_0) { if (___botOwner_0.IsRole(WildSpawnType.pmcUSEC) || ___botOwner_0.IsRole(WildSpawnType.pmcBEAR)) { diff --git a/project/SPT.Custom/Patches/PreventClientModsPatch.cs b/project/SPT.Custom/Patches/PreventClientModsPatch.cs index fb37344..a4e42c0 100644 --- a/project/SPT.Custom/Patches/PreventClientModsPatch.cs +++ b/project/SPT.Custom/Patches/PreventClientModsPatch.cs @@ -22,7 +22,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static void Prefix() + public static void PatchPrefix() { CheckForNonWhitelistedPlugins(Logger); } diff --git a/project/SPT.Custom/Patches/QTEPatch.cs b/project/SPT.Custom/Patches/QTEPatch.cs index 436d699..f0d6136 100644 --- a/project/SPT.Custom/Patches/QTEPatch.cs +++ b/project/SPT.Custom/Patches/QTEPatch.cs @@ -14,7 +14,7 @@ namespace SPT.Custom.Patches } [PatchPostfix] - private static void PatchPostfix(HideoutPlayerOwner __instance) + public static void PatchPostfix(HideoutPlayerOwner __instance) { RequestHandler.PutJson("/client/hideout/workout", new { diff --git a/project/SPT.Custom/Patches/SaveSettingsToSptFolderPatch.cs b/project/SPT.Custom/Patches/SaveSettingsToSptFolderPatch.cs index c1d1489..c38893c 100644 --- a/project/SPT.Custom/Patches/SaveSettingsToSptFolderPatch.cs +++ b/project/SPT.Custom/Patches/SaveSettingsToSptFolderPatch.cs @@ -19,7 +19,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - internal static void PatchPrefix(ref string ___string_0, ref string ___string_1) + public static void PatchPrefix(ref string ___string_0, ref string ___string_1) { if (!Directory.Exists(_sptPath)) { diff --git a/project/SPT.Custom/Patches/SendFleaListingTaxAmountToServerPatch.cs b/project/SPT.Custom/Patches/SendFleaListingTaxAmountToServerPatch.cs index 096be88..7ae862b 100644 --- a/project/SPT.Custom/Patches/SendFleaListingTaxAmountToServerPatch.cs +++ b/project/SPT.Custom/Patches/SendFleaListingTaxAmountToServerPatch.cs @@ -34,7 +34,7 @@ namespace SPT.Custom.Patches /// RequirementsPrice /// SellInOnePiece [PatchPrefix] - private static void PatchPrefix(ref Item ___item_0, ref RagfairOfferSellHelperClass ___ragfairOfferSellHelperClass, ref double ___double_0, ref bool ___bool_0) + public static void PatchPrefix(ref Item ___item_0, ref RagfairOfferSellHelperClass ___ragfairOfferSellHelperClass, ref double ___double_0, ref bool ___bool_0) { RequestHandler.PutJson("/client/ragfair/offerfees", new { diff --git a/project/SPT.Custom/Patches/SetPreRaidSettingsScreenDefaultsPatch.cs b/project/SPT.Custom/Patches/SetPreRaidSettingsScreenDefaultsPatch.cs index 4fad5d0..b8ea822 100644 --- a/project/SPT.Custom/Patches/SetPreRaidSettingsScreenDefaultsPatch.cs +++ b/project/SPT.Custom/Patches/SetPreRaidSettingsScreenDefaultsPatch.cs @@ -20,7 +20,7 @@ namespace SPT.Custom.Patches } [PatchPrefix] - private static void PatchPrefix(object controller, UpdatableToggle ____offlineModeToggle) + public static void PatchPrefix(object controller, UpdatableToggle ____offlineModeToggle) { //var raidSettings = Traverse.Create(controller).Field("RaidSettings").Value; var offlineRaidSettings = Traverse.Create(controller).Field("OfflineRaidSettings").Value; @@ -38,15 +38,6 @@ namespace SPT.Custom.Patches return; } - //raidSettings.BotSettings.BotAmount = settings.AiAmount; - //raidSettings.WavesSettings.BotAmount = settings.AiAmount; - //raidSettings.WavesSettings.BotDifficulty = settings.AiDifficulty; - //raidSettings.WavesSettings.IsBosses = settings.BossEnabled; - //raidSettings.BotSettings.IsScavWars = false; - //raidSettings.WavesSettings.IsTaggedAndCursed = settings.TaggedAndCursed; - //raidSettings.TimeAndWeatherSettings.IsRandomWeather = settings.RandomWeather; - //raidSettings.TimeAndWeatherSettings.IsRandomTime = settings.RandomTime; - // We use PVE mode from Tarkov now we need to modify PVE MODE instead of ONLINE Mode offlineRaidSettings.BotSettings.BotAmount = settings.AiAmount; @@ -60,7 +51,7 @@ namespace SPT.Custom.Patches } [PatchPostfix] - private static void PatchPostfix(MatchmakerOfflineRaidScreen __instance, DefaultUIButton ____changeSettingsButton, UiElementBlocker ____onlineBlocker) + public static void PatchPostfix(MatchmakerOfflineRaidScreen __instance, DefaultUIButton ____changeSettingsButton, UiElementBlocker ____onlineBlocker) { ____onlineBlocker.gameObject.SetActive(false); ____changeSettingsButton.Interactable = true; diff --git a/project/SPT.Custom/Patches/VersionLabelPatch.cs b/project/SPT.Custom/Patches/VersionLabelPatch.cs index e51eadc..c62db76 100644 --- a/project/SPT.Custom/Patches/VersionLabelPatch.cs +++ b/project/SPT.Custom/Patches/VersionLabelPatch.cs @@ -22,7 +22,7 @@ namespace SPT.Custom.Patches } [PatchPostfix] - internal static void PatchPostfix(object __result) + public static void PatchPostfix(object __result) { if (string.IsNullOrEmpty(_versionLabel)) { diff --git a/project/SPT.Debugging/Patches/CoordinatesPatch.cs b/project/SPT.Debugging/Patches/CoordinatesPatch.cs index ffa66bb..c19e1ce 100644 --- a/project/SPT.Debugging/Patches/CoordinatesPatch.cs +++ b/project/SPT.Debugging/Patches/CoordinatesPatch.cs @@ -18,7 +18,7 @@ namespace SPT.Debugging.Patches } [PatchPrefix] - private static void PatchPrefix(BaseLocalGame __instance) + public static void PatchPrefix(BaseLocalGame __instance) { if (!Input.GetKeyDown(KeyCode.LeftControl)) return; diff --git a/project/SPT.Debugging/Patches/DataHandlerDebugPatch.cs b/project/SPT.Debugging/Patches/DataHandlerDebugPatch.cs index 18914ec..627df33 100644 --- a/project/SPT.Debugging/Patches/DataHandlerDebugPatch.cs +++ b/project/SPT.Debugging/Patches/DataHandlerDebugPatch.cs @@ -13,7 +13,7 @@ namespace SPT.Debugging.Patches } [PatchPostfix] - private static void PatchPrefix(ref string __result) + public static void PatchPrefix(ref string __result) { Console.WriteLine($"response json: ${__result}"); } diff --git a/project/SPT.Debugging/Patches/EndRaidDebug.cs b/project/SPT.Debugging/Patches/EndRaidDebug.cs index 937d4bb..dd8ff0e 100644 --- a/project/SPT.Debugging/Patches/EndRaidDebug.cs +++ b/project/SPT.Debugging/Patches/EndRaidDebug.cs @@ -16,7 +16,7 @@ namespace SPT.Debugging.Patches } [PatchPrefix] - private static bool PatchPreFix(ref LocalizedText ____nickName, ref TMP_Text ____standing, + public static bool PatchPreFix(ref LocalizedText ____nickName, ref TMP_Text ____standing, ref RankPanel ____rankPanel, ref Profile.TraderInfo ___traderInfo_0) { if (____nickName.LocalizationKey == null) diff --git a/project/SPT.Debugging/Patches/LoggerClassPatch.cs b/project/SPT.Debugging/Patches/LoggerClassPatch.cs index baf8c70..64360e4 100644 --- a/project/SPT.Debugging/Patches/LoggerClassPatch.cs +++ b/project/SPT.Debugging/Patches/LoggerClassPatch.cs @@ -18,7 +18,7 @@ namespace SPT.Debugging.Patches } [PatchPostfix] - private static void PatchPostfix(string nlogFormat, string unityFormat, LogLevel logLevel, object[] args) + public static void PatchPostfix(string nlogFormat, string unityFormat, LogLevel logLevel, object[] args) { var bsgLevel = LogLevel.FromOrdinal(logLevel.Ordinal); var sptLevel = LogLevel.FromOrdinal(SPTDebuggingPlugin.logLevel.verbosity); diff --git a/project/SPT.Debugging/Patches/ReloadClientPatch.cs b/project/SPT.Debugging/Patches/ReloadClientPatch.cs index ac6bb05..59f743c 100644 --- a/project/SPT.Debugging/Patches/ReloadClientPatch.cs +++ b/project/SPT.Debugging/Patches/ReloadClientPatch.cs @@ -16,7 +16,7 @@ namespace SPT.Debugging.Patches } [PatchPostfix] - private static void PatchPostfix() + public static void PatchPostfix() { ConsoleScreen.Processor.RegisterCommandGroup(); } diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/AmmoUsedCounterPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/AmmoUsedCounterPatch.cs index 90379b8..6412400 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/AmmoUsedCounterPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/AmmoUsedCounterPatch.cs @@ -13,7 +13,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPostfix] - private static void PatchPostfix(Player __instance) + public static void PatchPostfix(Player __instance) { if (__instance.IsYourPlayer) { diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/ApplyRaidSettingsPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/ApplyRaidSettingsPatch.cs index 16215e9..979f667 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/ApplyRaidSettingsPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/ApplyRaidSettingsPatch.cs @@ -20,7 +20,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPrefix] - private static void PatchPrefix(ref RaidSettings ___raidSettings_0, ref RaidSettings ___raidSettings_1) + public static void PatchPrefix(ref RaidSettings ___raidSettings_0, ref RaidSettings ___raidSettings_1) { // If Raidsettingswindow is never opened it will soft lock game if (___raidSettings_0 == null) diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/ArmorDamageCounterPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/ArmorDamageCounterPatch.cs index 27349c0..0c27a6b 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/ArmorDamageCounterPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/ArmorDamageCounterPatch.cs @@ -16,7 +16,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPostfix] - private static void PatchPostfix(DamageInfo damageInfo) + public static void PatchPostfix(DamageInfo damageInfo) { if (damageInfo.Player == null || damageInfo.Player.iPlayer == null || !damageInfo.Player.iPlayer.IsYourPlayer) { diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/DisableMatchmakerPlayerPreviewButtonsPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/DisableMatchmakerPlayerPreviewButtonsPatch.cs index 89da49b..ca8d83a 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/DisableMatchmakerPlayerPreviewButtonsPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/DisableMatchmakerPlayerPreviewButtonsPatch.cs @@ -13,7 +13,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPrefix] - private static void PatchPrefix(ref GClass3114 contextInteractions) + public static void PatchPrefix(ref GClass3114 contextInteractions) { // clear with a null to stop "looking for group/create group" buttons // they handle nulls so dont worry diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/DisableReadyLocationReadyPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/DisableReadyLocationReadyPatch.cs index 97d098a..d941137 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/DisableReadyLocationReadyPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/DisableReadyLocationReadyPatch.cs @@ -17,7 +17,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPostfix] - private static void PatchPostfix(DefaultUIButton ____readyButton) + public static void PatchPostfix(DefaultUIButton ____readyButton) { ____readyButton.Interactable = false; } diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefForPVEPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefForPVEPatch.cs index d5e02f7..30d2485 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefForPVEPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefForPVEPatch.cs @@ -21,7 +21,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchTranspiler] - private static IEnumerable PatchTranspile(IEnumerable instructions) + public static IEnumerable PatchTranspile(IEnumerable instructions) { var codes = new List(instructions); var searchCode = new CodeInstruction(OpCodes.Ldstr, "6617beeaa9cfa777ca915b7c"); diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefIntermScreenPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefIntermScreenPatch.cs index b401bdc..a7b32cb 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefIntermScreenPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/EnableRefIntermScreenPatch.cs @@ -16,7 +16,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPrefix] - private static bool PatchPrefix(ref bool __result) + public static bool PatchPrefix(ref bool __result) { __result = false; return false; // Do not run original method diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/InsuranceScreenPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/InsuranceScreenPatch.cs index 8b76fdc..1060fd5 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/InsuranceScreenPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/InsuranceScreenPatch.cs @@ -31,7 +31,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPrefix] - private static void PrefixPatch(RaidSettings ___raidSettings_0) + public static void PrefixPatch(RaidSettings ___raidSettings_0) { ___raidSettings_0.RaidMode = ERaidMode.Online; } diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/MapReadyButtonPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/MapReadyButtonPatch.cs index fca8505..a184f5d 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/MapReadyButtonPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/MapReadyButtonPatch.cs @@ -19,7 +19,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPostfix] - private static void PatchPostFix(ref DefaultUIButton ____readyButton) + public static void PatchPostFix(ref DefaultUIButton ____readyButton) { ____readyButton?.GameObject?.SetActive(false); } diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/PVEModeWelcomeMessagePatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/PVEModeWelcomeMessagePatch.cs index 26c098c..7b7aec8 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/PVEModeWelcomeMessagePatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/PVEModeWelcomeMessagePatch.cs @@ -12,7 +12,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPrefix] - private static bool PatchPrefix(ref bool __result, string variable) + public static bool PatchPrefix(ref bool __result, string variable) { if (variable == "pve_first_time") { diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/PluginErrorNotifierPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/PluginErrorNotifierPatch.cs index eb0e5e7..f7bb772 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/PluginErrorNotifierPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/PluginErrorNotifierPatch.cs @@ -26,7 +26,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu } [PatchPostfix] - private static void PatchPostfix() + public static void PatchPostfix() { var failedPluginCount = Chainloader.DependencyErrors.Count; diff --git a/project/SPT.SinglePlayer/Patches/Progression/HideoutQuestIgnorePatch.cs b/project/SPT.SinglePlayer/Patches/Progression/HideoutQuestIgnorePatch.cs index bae75b3..eac7b63 100644 --- a/project/SPT.SinglePlayer/Patches/Progression/HideoutQuestIgnorePatch.cs +++ b/project/SPT.SinglePlayer/Patches/Progression/HideoutQuestIgnorePatch.cs @@ -20,14 +20,14 @@ namespace SPT.SinglePlayer.Patches.Progression } [PatchPrefix] - private static void PatchPrefix(ref AbstractQuestControllerClass __state, ref AbstractQuestControllerClass ____questController) + public static void PatchPrefix(ref AbstractQuestControllerClass __state, ref AbstractQuestControllerClass ____questController) { __state = ____questController; ____questController = null; } [PatchPostfix] - private static void PatchPostfix(AbstractQuestControllerClass __state, ref AbstractQuestControllerClass ____questController) + public static void PatchPostfix(AbstractQuestControllerClass __state, ref AbstractQuestControllerClass ____questController) { ____questController = __state; } diff --git a/project/SPT.SinglePlayer/Patches/Progression/ScavExperienceGainPatch.cs b/project/SPT.SinglePlayer/Patches/Progression/ScavExperienceGainPatch.cs index e6303c8..657a776 100644 --- a/project/SPT.SinglePlayer/Patches/Progression/ScavExperienceGainPatch.cs +++ b/project/SPT.SinglePlayer/Patches/Progression/ScavExperienceGainPatch.cs @@ -38,7 +38,7 @@ namespace SPT.SinglePlayer.Patches.Progression } [PatchPrefix] - private static bool PatchPrefix(ref Profile activeProfile,ref EPlayerSide side) + public static bool PatchPrefix(ref Profile activeProfile,ref EPlayerSide side) { if (activeProfile.Side == EPlayerSide.Savage) { diff --git a/project/SPT.SinglePlayer/Patches/Quests/SpawnPmcPatch.cs b/project/SPT.SinglePlayer/Patches/Quests/SpawnPmcPatch.cs index 301e155..eda8035 100644 --- a/project/SPT.SinglePlayer/Patches/Quests/SpawnPmcPatch.cs +++ b/project/SPT.SinglePlayer/Patches/Quests/SpawnPmcPatch.cs @@ -32,7 +32,7 @@ namespace SPT.SinglePlayer.Patches.Quests } [PatchPrefix] - private static bool PatchPrefix(ref bool __result, WildSpawnType ___wildSpawnType_0, BotDifficulty ___botDifficulty_0, Profile x) + public static bool PatchPrefix(ref bool __result, WildSpawnType ___wildSpawnType_0, BotDifficulty ___botDifficulty_0, Profile x) { if (x == null) { diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/BotTemplateLimitPatch.cs b/project/SPT.SinglePlayer/Patches/RaidFix/BotTemplateLimitPatch.cs index f85d3c1..9f5b495 100644 --- a/project/SPT.SinglePlayer/Patches/RaidFix/BotTemplateLimitPatch.cs +++ b/project/SPT.SinglePlayer/Patches/RaidFix/BotTemplateLimitPatch.cs @@ -21,7 +21,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix } [PatchPostfix] - private static void PatchPostfix(List __result, List wavesProfiles, List delayed) + public static void PatchPostfix(List __result, List wavesProfiles, List delayed) { /* Method sums Limits by grouping wavesPropfiles collection by Role and Difficulty diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs b/project/SPT.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs index 88d6dbb..c0e1847 100644 --- a/project/SPT.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs +++ b/project/SPT.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs @@ -44,7 +44,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix /// BotsPresets.GetNewProfile() /// [PatchPrefix] - private static bool PatchPrefix(ref Task __result, BotsPresets __instance, List ___list_0, BotCreationDataClass data, ref bool withDelete) + public static bool PatchPrefix(ref Task __result, BotsPresets __instance, List ___list_0, BotCreationDataClass data, ref bool withDelete) { /* When client wants new bot and GetNewProfile() return null (if not more available templates or they don't satisfy by Role and Difficulty condition) diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/LabsKeycardRemovalPatch.cs b/project/SPT.SinglePlayer/Patches/RaidFix/LabsKeycardRemovalPatch.cs index a7068ec..03be984 100644 --- a/project/SPT.SinglePlayer/Patches/RaidFix/LabsKeycardRemovalPatch.cs +++ b/project/SPT.SinglePlayer/Patches/RaidFix/LabsKeycardRemovalPatch.cs @@ -20,7 +20,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix } [PatchPostfix] - private static void PatchPostfix() + public static void PatchPostfix() { var gameWorld = Singleton.Instance; var player = gameWorld?.MainPlayer; diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/MaxBotPatch.cs b/project/SPT.SinglePlayer/Patches/RaidFix/MaxBotPatch.cs index 3b077e0..4d6499a 100644 --- a/project/SPT.SinglePlayer/Patches/RaidFix/MaxBotPatch.cs +++ b/project/SPT.SinglePlayer/Patches/RaidFix/MaxBotPatch.cs @@ -35,7 +35,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix } [PatchPrefix] - private static void PatchPreFix(ref int maxCount) + public static void PatchPreFix(ref int maxCount) { var gameWorld = Singleton.Instance; var location = gameWorld.MainPlayer.Location; diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/PostRaidHealingPricePatch.cs b/project/SPT.SinglePlayer/Patches/RaidFix/PostRaidHealingPricePatch.cs index 11e6add..ffeb32b 100644 --- a/project/SPT.SinglePlayer/Patches/RaidFix/PostRaidHealingPricePatch.cs +++ b/project/SPT.SinglePlayer/Patches/RaidFix/PostRaidHealingPricePatch.cs @@ -14,7 +14,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix } [PatchPrefix] - protected static void PatchPrefix(Profile.TraderInfo __instance) + public static void PatchPrefix(Profile.TraderInfo __instance) { if (__instance.Settings == null) { diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/RemoveUsedBotProfilePatch.cs b/project/SPT.SinglePlayer/Patches/RaidFix/RemoveUsedBotProfilePatch.cs index c895838..bfaa102 100644 --- a/project/SPT.SinglePlayer/Patches/RaidFix/RemoveUsedBotProfilePatch.cs +++ b/project/SPT.SinglePlayer/Patches/RaidFix/RemoveUsedBotProfilePatch.cs @@ -19,7 +19,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix /// /// BotsPresets.GetNewProfile() [PatchPrefix] - private static bool PatchPrefix(ref bool withDelete) + public static bool PatchPrefix(ref bool withDelete) { withDelete = true; diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/SmokeGrenadeFuseSoundFixPatch.cs b/project/SPT.SinglePlayer/Patches/RaidFix/SmokeGrenadeFuseSoundFixPatch.cs index ea4f780..3d975a8 100644 --- a/project/SPT.SinglePlayer/Patches/RaidFix/SmokeGrenadeFuseSoundFixPatch.cs +++ b/project/SPT.SinglePlayer/Patches/RaidFix/SmokeGrenadeFuseSoundFixPatch.cs @@ -20,7 +20,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix } [PatchTranspiler] - private static IEnumerable PatchTranspile(IEnumerable instructions) + public static IEnumerable PatchTranspile(IEnumerable instructions) { var codes = new List(instructions); var searchCode = new CodeInstruction(OpCodes.Callvirt, AccessTools.Method(typeof(AudioClip), "get_length")); diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/SpawnProcessNegativeValuePatch.cs b/project/SPT.SinglePlayer/Patches/RaidFix/SpawnProcessNegativeValuePatch.cs index 1f62c83..68a6002 100644 --- a/project/SPT.SinglePlayer/Patches/RaidFix/SpawnProcessNegativeValuePatch.cs +++ b/project/SPT.SinglePlayer/Patches/RaidFix/SpawnProcessNegativeValuePatch.cs @@ -24,7 +24,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix } [PatchPrefix] - private static bool PatchPreFix(int wantSpawn, ref int toDelay, ref int toSpawn, ref int ____maxBots, int ____allBotsCount, int ____inSpawnProcess) + public static bool PatchPreFix(int wantSpawn, ref int toDelay, ref int toSpawn, ref int ____maxBots, int ____allBotsCount, int ____inSpawnProcess) { // Set bots to delay if alive bots + spawning bots count > maxbots // ____inSpawnProcess can be negative, don't go below 0 when calculating diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/TinnitusFixPatch.cs b/project/SPT.SinglePlayer/Patches/RaidFix/TinnitusFixPatch.cs index e39efae..355f15c 100644 --- a/project/SPT.SinglePlayer/Patches/RaidFix/TinnitusFixPatch.cs +++ b/project/SPT.SinglePlayer/Patches/RaidFix/TinnitusFixPatch.cs @@ -17,7 +17,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix // checks on invoke whether the player is stunned before allowing tinnitus [PatchPrefix] - static bool PatchPrefix() + public static bool PatchPrefix() { var baseMethod = AccessTools.Method(typeof(ActiveHealthController), nameof(ActiveHealthController.FindActiveEffect)); diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/EnablePlayerScavPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/EnablePlayerScavPatch.cs index a41a21d..8d3edbb 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/EnablePlayerScavPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/EnablePlayerScavPatch.cs @@ -19,7 +19,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchPrefix] - private static void PatchPrefix(ref RaidSettings ___raidSettings_0, ref RaidSettings ___raidSettings_1, MainMenuController __instance) + public static void PatchPrefix(ref RaidSettings ___raidSettings_0, ref RaidSettings ___raidSettings_1, MainMenuController __instance) { ___raidSettings_0.RaidMode = ERaidMode.Local; ___raidSettings_0.IsPveOffline = true; @@ -29,7 +29,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchPostfix] - private static void PatchPostfix(ref RaidSettings ___raidSettings_0) + public static void PatchPostfix(ref RaidSettings ___raidSettings_0) { ___raidSettings_0.RaidMode = ERaidMode.Local; ___raidSettings_0.IsPveOffline = true; diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/FixSavageInventoryScreenPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/FixSavageInventoryScreenPatch.cs index 3dd4d78..13e363b 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/FixSavageInventoryScreenPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/FixSavageInventoryScreenPatch.cs @@ -20,7 +20,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchPrefix] - private static void PatchPrefix(LocalGame __instance) + public static void PatchPrefix(LocalGame __instance) { GetProfileAtEndOfRaidPatch.Profile = __instance.Profile_0.ToJson(); } @@ -37,7 +37,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchPrefix] - private static void PatchPrefix(ref ISession ___iSession) + public static void PatchPrefix(ref ISession ___iSession) { var profile = GetProfileAtEndOfRaidPatch.Profile.ParseJsonTo(); diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs index c030caf..b1b6775 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs @@ -50,7 +50,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchTranspiler] - private static IEnumerable PatchTranspiler(ILGenerator generator, IEnumerable instructions) + public static IEnumerable PatchTranspiler(ILGenerator generator, IEnumerable instructions) { /* The original msil looks something like this: * 0 0000 ldarg.0 diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs index 6576759..875b591 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavExfilPatch.cs @@ -15,7 +15,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchPrefix] - private static bool PatchPrefix(Profile profile, ExfiltrationControllerClass __instance, ref ExfiltrationPoint[] __result) + public static bool PatchPrefix(Profile profile, ExfiltrationControllerClass __instance, ref ExfiltrationPoint[] __result) { if (profile.Info.Side != EPlayerSide.Savage) { diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavFoundInRaidPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavFoundInRaidPatch.cs index 3b15127..7f50e00 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavFoundInRaidPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavFoundInRaidPatch.cs @@ -13,7 +13,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchPrefix] - private static void PatchPrefix(GameWorld __instance) + public static void PatchPrefix(GameWorld __instance) { var player = __instance.MainPlayer; diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavLateStartPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavLateStartPatch.cs index 738dc4b..2057c0f 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavLateStartPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavLateStartPatch.cs @@ -47,7 +47,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchPrefix] - private static bool PatchPrefix(ref RaidSettings ____raidSettings) + public static bool PatchPrefix(ref RaidSettings ____raidSettings) { var currentMapId = ____raidSettings.SelectedLocation.Id; diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavPrefabLoadPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavPrefabLoadPatch.cs index 376459a..b046f49 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavPrefabLoadPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavPrefabLoadPatch.cs @@ -38,7 +38,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchTranspiler] - private static IEnumerable PatchTranspile(ILGenerator generator, IEnumerable instructions) + public static IEnumerable PatchTranspile(ILGenerator generator, IEnumerable instructions) { var codes = new List(instructions); diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavProfileLoadPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavProfileLoadPatch.cs index 97560f7..3efd42b 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavProfileLoadPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavProfileLoadPatch.cs @@ -32,7 +32,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchTranspiler] - private static IEnumerable PatchTranspile(ILGenerator generator, IEnumerable instructions) + public static IEnumerable PatchTranspile(ILGenerator generator, IEnumerable instructions) { var codes = new List(instructions); diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavRepAdjustmentPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavRepAdjustmentPatch.cs index 4078cf7..55aef25 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavRepAdjustmentPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavRepAdjustmentPatch.cs @@ -16,7 +16,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchPrefix] - private static void PatchPrefix(DamageInfo damage, string playerProfileId, out Tuple __state) + public static void PatchPrefix(DamageInfo damage, string playerProfileId, out Tuple __state) { __state = new Tuple(null, false); var player = (Player)damage.Player.iPlayer; diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavSellAllPriceStorePatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavSellAllPriceStorePatch.cs index 14222dd..74dc229 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavSellAllPriceStorePatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavSellAllPriceStorePatch.cs @@ -43,7 +43,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchPostfix] - private static void PatchPostfix(ScavengerInventoryScreen __instance, IEnumerable items) + public static void PatchPostfix(ScavengerInventoryScreen __instance, IEnumerable items) { ISession session = _sessionField.GetValue(__instance) as ISession; TraderClass traderClass = session.Traders.FirstOrDefault(x => x.Id == FENCE_ID); diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavSellAllRequestPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavSellAllRequestPatch.cs index eda4585..16961df 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavSellAllRequestPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavSellAllRequestPatch.cs @@ -29,7 +29,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode } [PatchPrefix] - private static bool PatchPrefix(ProfileEndpointFactoryAbstractClass __instance, ref Task __result, string playerId, string petId) + public static bool PatchPrefix(ProfileEndpointFactoryAbstractClass __instance, ref Task __result, string playerId, string petId) { // Build request with additional information OwnerInfo fromOwner = new OwnerInfo diff --git a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs index bc6f80f..a03ec65 100644 --- a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs +++ b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs @@ -32,7 +32,7 @@ namespace SPT.SinglePlayer // Still need - //new SmokeGrenadeFuseSoundFixPatch().Enable(); TODO: refactor as it causes exceptions to be thrown when grenade is tossed by player + // new SmokeGrenadeFuseSoundFixPatch().Enable(); TODO: refactor as it causes exceptions to be thrown when grenade is tossed by player new ScavExperienceGainPatch().Enable(); new DisablePMCExtractsForScavsPatch().Enable(); new ScavExfilPatch().Enable(); @@ -60,7 +60,7 @@ namespace SPT.SinglePlayer new GetProfileAtEndOfRaidPatch().Enable(); new FixSavageInventoryScreenPatch().Enable(); new InsuranceScreenPatch().Enable(); - //new ApplyRaidSettingsPatch().Enable(); Should be no longer needed keeping here just to be safe. + // new ApplyRaidSettingsPatch().Enable(); Should be no longer needed keeping here just to be safe. new FixQuestAchieveControllersPatch().Enable(); } catch (Exception ex)