From b0d76474b950748299397eadca62742df3b4406d Mon Sep 17 00:00:00 2001 From: AlchlcDvl <56699741+AlchlcDvl@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:23:39 -0400 Subject: [PATCH] add loggin for debugging --- MiraAPI/Modifiers/ModifierManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MiraAPI/Modifiers/ModifierManager.cs b/MiraAPI/Modifiers/ModifierManager.cs index 6fa189d..927f60a 100644 --- a/MiraAPI/Modifiers/ModifierManager.cs +++ b/MiraAPI/Modifiers/ModifierManager.cs @@ -83,6 +83,7 @@ internal static void AssignModifiers(List plrs) var num = Math.Clamp(mod.GetAmountPerGame(), 0, maxCount); var chance = mod.GetAssignmentChance(); + Logger.Warning($"{mod}:{modifier.Key}:{mod.Priority()}:{mod.GetAssignmentChance()}"); for (var i = 0; i < num; i++) { @@ -107,6 +108,7 @@ internal static void AssignModifiers(List plrs) } map[id] = mod.Priority(); + Logger.Warning($"{mod}:{id}:{mod.Priority()}:{mod.GetAssignmentChance()}"); } shuffledModifiers = map.OrderByDescending(x => x.Value).Select(x => x.Key).ToList();