mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:10:44 -05:00
Since gameWorld.LocationId can be used by multiple things (And may be used by more in the future), move it to its own patch instead of as part of the BTR patch. Target `method_3` in `BaseLocalGame` to assign it as close to where a live game would set it Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Reviewed-on: SPT-AKI/Modules#49 Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com> Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
64 lines
2.4 KiB
C#
64 lines
2.4 KiB
C#
using System;
|
|
using Aki.Common;
|
|
using Aki.Custom.Airdrops.Patches;
|
|
using Aki.Custom.Patches;
|
|
using Aki.Custom.Utils;
|
|
using Aki.SinglePlayer.Patches.ScavMode;
|
|
using BepInEx;
|
|
|
|
namespace Aki.Custom
|
|
{
|
|
[BepInPlugin("com.spt-aki.custom", "AKI.Custom", AkiPluginInfo.PLUGIN_VERSION)]
|
|
class AkiCustomPlugin : BaseUnityPlugin
|
|
{
|
|
public void Awake()
|
|
{
|
|
Logger.LogInfo("Loading: Aki.Custom");
|
|
|
|
try
|
|
{
|
|
// Bundle patches should always load first
|
|
BundleManager.GetBundles();
|
|
new EasyAssetsPatch().Enable();
|
|
new EasyBundlePatch().Enable();
|
|
|
|
new BossSpawnChancePatch().Enable();
|
|
new BotDifficultyPatch().Enable();
|
|
new CoreDifficultyPatch().Enable();
|
|
new OfflineRaidMenuPatch().Enable();
|
|
// Fixed in live, no need for patch
|
|
//new RaidSettingsWindowPatch().Enable();
|
|
new OfflineRaidSettingsMenuPatch().Enable();
|
|
new SessionIdPatch().Enable();
|
|
new VersionLabelPatch().Enable();
|
|
new IsEnemyPatch().Enable();
|
|
new LocationLootCacheBustingPatch().Enable();
|
|
//new AddSelfAsEnemyPatch().Enable();
|
|
new CheckAndAddEnemyPatch().Enable();
|
|
new BotSelfEnemyPatch().Enable(); // needed
|
|
new AddEnemyToAllGroupsInBotZonePatch().Enable();
|
|
new AirdropPatch().Enable();
|
|
new AirdropFlarePatch().Enable();
|
|
new AddSptBotSettingsPatch().Enable();
|
|
new CustomAiPatch().Enable();
|
|
new ExitWhileLootingPatch().Enable();
|
|
new QTEPatch().Enable();
|
|
new PmcFirstAidPatch().Enable();
|
|
new SettingsLocationPatch().Enable();
|
|
new SetLocationIdOnRaidStartPatch().Enable();
|
|
//new RankPanelPatch().Enable();
|
|
new RagfairFeePatch().Enable();
|
|
new ScavQuestPatch().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: Aki.Custom");
|
|
}
|
|
}
|
|
}
|