mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
move max count down a bit
This commit is contained in:
1 parent
246e40539c
commit
ed0c75acf8
1 file changed
+2
-1
@@ -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}");
|
||||
|
||||
Reference in new issue
Block a user