move max count down a bit

This commit is contained in:
AlchlcDvl authored and XtraCube committed 2024-12-21 15:16:24 -05:00
1 parent 246e40539c
commit ed0c75acf8
1 file changed
+2 -1
+2 -1
View File
@@ -88,13 +88,14 @@ public static class ModifierManager
{
var mod = Activator.CreateInstance(IdToTypeModifierMap[id]) as GameModifier;
var chance = Math.Clamp(mod!.GetAssignmentChance(), 0, 100);
var maxCount = plrs.Count(x => IsGameModifierValid(x, mod!, id));
if (chance == 0 || mod!.GetAmountPerGame() == 0)
{
continue;
}
var maxCount = plrs.Count(x => IsGameModifierValid(x, mod!, id));
if (maxCount == 0)
{
Logger<MiraApiPlugin>.Warning($"No players are valid for {mod!.ModifierName}");