change type on randomUtil

This commit is contained in:
CWX
2025-01-13 14:07:47 +00:00
parent 2ef96f3631
commit 77cee6b6d6
+2 -2
View File
@@ -104,7 +104,7 @@ public class RandomUtil
/// </summary>
/// <param name="chancePercent">The percentage chance (0-100) that the event will occur.</param>
/// <returns>`true` if the event occurs, `false` otherwise.</returns>
public bool GetChance100(float chancePercent)
public bool GetChance100(double chancePercent)
{
chancePercent = Math.Clamp(chancePercent, 0f, 100f);
@@ -378,4 +378,4 @@ public class RandomUtil
? parts[1].Length
: 0;
}
}
}