mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 06:50:44 -05:00
84 lines
3.6 KiB
C#
84 lines
3.6 KiB
C#
using System;
|
|
using SPT.Common;
|
|
using SPT.SinglePlayer.Patches.Healing;
|
|
using SPT.SinglePlayer.Patches.MainMenu;
|
|
using SPT.SinglePlayer.Patches.Progression;
|
|
using SPT.SinglePlayer.Patches.Quests;
|
|
using SPT.SinglePlayer.Patches.RaidFix;
|
|
using SPT.SinglePlayer.Patches.ScavMode;
|
|
using SPT.SinglePlayer.Patches.TraderServices;
|
|
using BepInEx;
|
|
|
|
namespace SPT.SinglePlayer
|
|
{
|
|
[BepInPlugin("com.SPT.singleplayer", "spt.Singleplayer", SPTPluginInfo.PLUGIN_VERSION)]
|
|
class SPTSingleplayerPlugin : BaseUnityPlugin
|
|
{
|
|
public void Awake()
|
|
{
|
|
Logger.LogInfo("Loading: SPT.SinglePlayer");
|
|
|
|
try
|
|
{
|
|
new OfflineSaveProfilePatch().Enable();
|
|
//new OfflineSpawnPointPatch().Enable(); // Spawns are properly randomised and patch is likely no longer needed
|
|
new ExperienceGainPatch().Enable();
|
|
new ScavExperienceGainPatch().Enable();
|
|
new MainMenuControllerPatch().Enable();
|
|
new PlayerPatch().Enable();
|
|
new SelectLocationScreenPatch().Enable();
|
|
new InsuranceScreenPatch().Enable();
|
|
new BotTemplateLimitPatch().Enable();
|
|
new GetNewBotTemplatesPatch().Enable();
|
|
new RemoveUsedBotProfilePatch().Enable();
|
|
new DogtagPatch().Enable();
|
|
new LoadOfflineRaidScreenPatch().Enable();
|
|
new ScavPrefabLoadPatch().Enable();
|
|
new ScavProfileLoadPatch().Enable();
|
|
new ScavExfilPatch().Enable();
|
|
new ExfilPointManagerPatch().Enable();
|
|
new TinnitusFixPatch().Enable();
|
|
new MaxBotPatch().Enable();
|
|
new SpawnPmcPatch().Enable();
|
|
new PostRaidHealingPricePatch().Enable();
|
|
new EndByTimerPatch().Enable();
|
|
new InRaidQuestAvailablePatch().Enable();
|
|
new PostRaidHealScreenPatch().Enable();
|
|
new VoIPTogglerPatch().Enable();
|
|
new MidRaidQuestChangePatch().Enable();
|
|
new HealthControllerPatch().Enable();
|
|
new LighthouseBridgePatch().Enable();
|
|
new LighthouseTransmitterPatch().Enable();
|
|
new EmptyInfilFixPatch().Enable();
|
|
new SmokeGrenadeFuseSoundFixPatch().Enable();
|
|
new PlayerToggleSoundFixPatch().Enable();
|
|
new PluginErrorNotifierPatch().Enable();
|
|
new SpawnProcessNegativeValuePatch().Enable();
|
|
new InsuredItemManagerStartPatch().Enable();
|
|
new MapReadyButtonPatch().Enable();
|
|
new LabsKeycardRemovalPatch().Enable();
|
|
new ScavLateStartPatch().Enable();
|
|
new MidRaidAchievementChangePatch().Enable();
|
|
new GetTraderServicesPatch().Enable();
|
|
new PurchaseTraderServicePatch().Enable();
|
|
new ScavSellAllPriceStorePatch().Enable();
|
|
new ScavSellAllRequestPatch().Enable();
|
|
new HideoutQuestIgnorePatch().Enable();
|
|
new LightKeeperServicesPatch().Enable();
|
|
new ScavEncyclopediaPatch().Enable();
|
|
new ScavRepAdjustmentPatch().Enable();
|
|
new AmmoUsedCounterPatch().Enable();
|
|
new ArmorDamageCounterPatch().Enable();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Logger.LogError($"A PATCH IN {GetType().Name} FAILED. SUBSEQUENT PATCHES HAVE NOT LOADED");
|
|
Logger.LogError($"{GetType().Name}: {ex}");
|
|
throw;
|
|
}
|
|
|
|
Logger.LogInfo("Completed: SPT.SinglePlayer");
|
|
}
|
|
}
|
|
}
|