diff --git a/project/Aki.SinglePlayer/AkiSingleplayerPlugin.cs b/project/Aki.SinglePlayer/AkiSingleplayerPlugin.cs index f3cdf07..863379f 100644 --- a/project/Aki.SinglePlayer/AkiSingleplayerPlugin.cs +++ b/project/Aki.SinglePlayer/AkiSingleplayerPlugin.cs @@ -20,7 +20,7 @@ namespace Aki.SinglePlayer try { new OfflineSaveProfilePatch().Enable(); - new OfflineSpawnPointPatch().Enable(); + //new OfflineSpawnPointPatch().Enable(); // Spawns are properly randomised and patch is likely no longer needed new ExperienceGainPatch().Enable(); new ScavExperienceGainPatch().Enable(); new MainMenuControllerPatch().Enable(); diff --git a/project/Aki.SinglePlayer/Patches/Progression/OfflineSpawnPointPatch.cs b/project/Aki.SinglePlayer/Patches/Progression/OfflineSpawnPointPatch.cs index 32d75e4..f242a67 100644 --- a/project/Aki.SinglePlayer/Patches/Progression/OfflineSpawnPointPatch.cs +++ b/project/Aki.SinglePlayer/Patches/Progression/OfflineSpawnPointPatch.cs @@ -51,7 +51,7 @@ namespace Aki.SinglePlayer.Patches.Progression var spawnPointsField = (ISpawnPoints)__instance.GetType().GetFields(PatchConstants.PrivateFlags).SingleOrDefault(f => f.FieldType == typeof(ISpawnPoints))?.GetValue(__instance); if (spawnPointsField == null) { - throw new Exception($"OfflineSpawnPointPatch: Failed to locate field of {nameof(ISpawnPoints)} on class instance ({__instance.GetType().Name})"); + throw new Exception($"OfflineSpawnPointPatch: Failed to locate field: {nameof(ISpawnPoints)} on class instance: {__instance.GetType().Name}"); } var mapSpawnPoints = spawnPointsField.ToList(); @@ -72,7 +72,7 @@ namespace Aki.SinglePlayer.Patches.Progression Logger.LogInfo($"Desired spawnpoint: [category:{category}] [side:{side}] [infil:{infiltration}] [{mapSpawnPoints.Count} total spawn points]"); Logger.LogInfo($"Selected SpawnPoint: [id:{__result.Id}] [name:{__result.Name}] [category:{__result.Categories}] [side:{__result.Sides}] [infil:{__result.Infiltration}]"); - return false; + return false; // skip original method } private static List FilterByPlayerSide(List mapSpawnPoints, ESpawnCategory category, EPlayerSide side)