хуйня (#146)

This commit is contained in:
Jabak
2024-10-22 15:16:27 +03:00
committed by GitHub
parent 84213151ab
commit 524253c265

View File

@@ -464,10 +464,10 @@ public sealed partial class AntagSelectionSystem : GameRuleSystem<AntagSelection
var antagChance = info.AntagChance;
// Ensure antagChance is within 0-100 range
antagChance = Math.Clamp(antagChance, 0, 50);
antagChance = Math.Clamp(antagChance, 0, 100);
// Convert clamped antagChance from 0-100 range to 0-1 range
return antagChance / 50f;
return antagChance / 100f;
}
}