From 0c125bbd1073bfccc7f93fc441bf6a58d092f02f Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 12 Jul 2023 17:10:00 +0100 Subject: [PATCH] Update logging messages --- project/Aki.Custom/Patches/CustomAiPatch.cs | 4 ++-- project/Aki.SinglePlayer/Patches/Quests/DogtagPatch.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/Aki.Custom/Patches/CustomAiPatch.cs b/project/Aki.Custom/Patches/CustomAiPatch.cs index b6aba2c..2d52ca7 100644 --- a/project/Aki.Custom/Patches/CustomAiPatch.cs +++ b/project/Aki.Custom/Patches/CustomAiPatch.cs @@ -56,7 +56,7 @@ namespace Aki.Custom.Patches var randomType = WeightedRandom(mapSettings.Keys.ToArray(), mapSettings.Values.ToArray()); if (Enum.TryParse(randomType, out WildSpawnType newAiType)) { - Console.WriteLine($"Updated spt bot {___botOwner_0.Profile.Info.Nickname}: {___botOwner_0.Profile.Info.Settings.Role} to {newAiType}"); + Console.WriteLine($"Updated spt bot {___botOwner_0.Profile.Info.Nickname}: {___botOwner_0.Profile.Info.Settings.Role} to use: {newAiType} brain"); ___botOwner_0.Profile.Info.Settings.Role = newAiType; } else @@ -118,7 +118,7 @@ namespace Aki.Custom.Patches // Get weightings for PMCs from server and store in dict var result = RequestHandler.GetJson($"/singleplayer/settings/bot/getBotBehaviours/"); botTypeCache = JsonConvert.DeserializeObject>>>(result); - Console.WriteLine($"cached: {botTypeCache.Count} bots"); + Console.WriteLine($"Added {botTypeCache.Count} bots to client cache"); } private static string WeightedRandom(string[] botTypes, int[] weights) diff --git a/project/Aki.SinglePlayer/Patches/Quests/DogtagPatch.cs b/project/Aki.SinglePlayer/Patches/Quests/DogtagPatch.cs index acb4058..a1fd042 100644 --- a/project/Aki.SinglePlayer/Patches/Quests/DogtagPatch.cs +++ b/project/Aki.SinglePlayer/Patches/Quests/DogtagPatch.cs @@ -39,7 +39,7 @@ namespace Aki.SinglePlayer.Patches.Quests if (dogtagItem == null) { - Logger.LogError("DogtagPatch error > DogTag slot item is null somehow."); + Logger.LogError($"DogtagPatch error > DogTag slot item on {__instance.Profile?.Info?.Nickname} is null somehow."); return; }