Skip to content

Commit

Permalink
add loggin for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
AlchlcDvl committed Sep 25, 2024
1 parent 46490af commit b0d7647
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MiraAPI/Modifiers/ModifierManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ internal static void AssignModifiers(List<PlayerControl> plrs)

var num = Math.Clamp(mod.GetAmountPerGame(), 0, maxCount);
var chance = mod.GetAssignmentChance();
Logger<MiraApiPlugin>.Warning($"{mod}:{modifier.Key}:{mod.Priority()}:{mod.GetAssignmentChance()}");

for (var i = 0; i < num; i++)
{
Expand All @@ -107,6 +108,7 @@ internal static void AssignModifiers(List<PlayerControl> plrs)
}

map[id] = mod.Priority();
Logger<MiraApiPlugin>.Warning($"{mod}:{id}:{mod.Priority()}:{mod.GetAssignmentChance()}");
}

shuffledModifiers = map.OrderByDescending(x => x.Value).Select(x => x.Key).ToList();
Expand Down

0 comments on commit b0d7647

Please sign in to comment.