Merge pull request #309 from cp89gamedev/fix-broken-test

theres a chance that 0 equals 0
This commit is contained in:
Chomp
2025-05-29 22:18:43 +01:00
committed by GitHub
@@ -105,7 +105,7 @@ public class RandomUtil(ISptLogger<RandomUtil> _logger, ICloner _cloner)
{
chancePercent = Math.Clamp(chancePercent ?? 0, 0D, 100D);
return GetInt(0, 100) <= chancePercent;
return GetInt(1, 100) <= chancePercent;
}
/// <summary>