0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 02:30:44 -05:00

Update logging messages

This commit is contained in:
Dev 2023-07-12 17:10:00 +01:00
parent dd4366efcf
commit 0c125bbd10
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ namespace Aki.Custom.Patches
var randomType = WeightedRandom(mapSettings.Keys.ToArray(), mapSettings.Values.ToArray()); var randomType = WeightedRandom(mapSettings.Keys.ToArray(), mapSettings.Values.ToArray());
if (Enum.TryParse(randomType, out WildSpawnType newAiType)) 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; ___botOwner_0.Profile.Info.Settings.Role = newAiType;
} }
else else
@ -118,7 +118,7 @@ namespace Aki.Custom.Patches
// Get weightings for PMCs from server and store in dict // Get weightings for PMCs from server and store in dict
var result = RequestHandler.GetJson($"/singleplayer/settings/bot/getBotBehaviours/"); var result = RequestHandler.GetJson($"/singleplayer/settings/bot/getBotBehaviours/");
botTypeCache = JsonConvert.DeserializeObject<Dictionary<WildSpawnType, Dictionary<string, Dictionary<string, int>>>>(result); botTypeCache = JsonConvert.DeserializeObject<Dictionary<WildSpawnType, Dictionary<string, Dictionary<string, int>>>>(result);
Console.WriteLine($"cached: {botTypeCache.Count} bots"); Console.WriteLine($"Added {botTypeCache.Count} bots to client cache");
} }
private static string WeightedRandom(string[] botTypes, int[] weights) private static string WeightedRandom(string[] botTypes, int[] weights)

View File

@ -39,7 +39,7 @@ namespace Aki.SinglePlayer.Patches.Quests
if (dogtagItem == null) 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; return;
} }