From 77cee6b6d62d230822bc48d98df1e57dd399a5bd Mon Sep 17 00:00:00 2001 From: CWX Date: Mon, 13 Jan 2025 14:07:47 +0000 Subject: [PATCH] change type on randomUtil --- Core/Utils/RandomUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Utils/RandomUtil.cs b/Core/Utils/RandomUtil.cs index b51d2115..2e49e8f4 100644 --- a/Core/Utils/RandomUtil.cs +++ b/Core/Utils/RandomUtil.cs @@ -104,7 +104,7 @@ public class RandomUtil /// /// The percentage chance (0-100) that the event will occur. /// `true` if the event occurs, `false` otherwise. - 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; } -} \ No newline at end of file +}