From 7cd73c0e61cbe5eda58f9451d15e583b76b62640 Mon Sep 17 00:00:00 2001 From: MisterMecky Date: Tue, 23 Jul 2024 15:24:51 +0800 Subject: [PATCH] fix randomfill logic --- Content.Shared/Random/Helpers/SharedRandomExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Random/Helpers/SharedRandomExtensions.cs b/Content.Shared/Random/Helpers/SharedRandomExtensions.cs index 376e91743d07..1e0fc2b5fd35 100644 --- a/Content.Shared/Random/Helpers/SharedRandomExtensions.cs +++ b/Content.Shared/Random/Helpers/SharedRandomExtensions.cs @@ -142,7 +142,7 @@ public static RandomFillSolution PickRandomFill(this WeightedRandomFillSolutionP foreach (var fill in fills) { - picks[fill] = fill.Weight; + picks[fill] = fill.Weight * fill.Reagents.Count; } var sum = picks.Values.Sum();