From 2376d54d7119f7edb8b8b6a3739be96a9514e198 Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 6 Oct 2025 09:51:40 +0100 Subject: [PATCH] Fixed flea offer item count + cultist circle rouble value being incorrect when using `randomUtil.GetPercentOfValue` --- Libraries/SPTarkov.Server.Core/Utils/RandomUtil.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Utils/RandomUtil.cs b/Libraries/SPTarkov.Server.Core/Utils/RandomUtil.cs index 05e4cf60..8e9c1cca 100644 --- a/Libraries/SPTarkov.Server.Core/Utils/RandomUtil.cs +++ b/Libraries/SPTarkov.Server.Core/Utils/RandomUtil.cs @@ -80,20 +80,6 @@ public class RandomUtil(ISptLogger logger, ICloner cloner) return Math.Round(num, toFixed); } - /// - /// Calculates the percentage of a given number and returns the result. - /// - /// The percentage to calculate. - /// The number to calculate the percentage of. - /// The number of decimal places to round the result to (default is 2). - /// The calculated percentage of the given number, rounded to the specified number of decimal places. - public virtual int GetPercentOfValue(double percent, int number, int toFixed = 2) - { - var num = percent * (number / 100); - - return (int)Math.Round(num, toFixed); - } - /// /// Calculates the percentage of a given number and returns the result. ///