From 3d8d1ba2180d17366bcf03ff3c1b3cc9537ea840 Mon Sep 17 00:00:00 2001 From: Alex Gilbert Date: Mon, 22 Jan 2024 00:29:48 -0500 Subject: [PATCH] - Fixed Sandy stock randomness --- StardewArchipelago/GameModifications/ShopStockGenerator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/StardewArchipelago/GameModifications/ShopStockGenerator.cs b/StardewArchipelago/GameModifications/ShopStockGenerator.cs index 7a4028289..547363613 100644 --- a/StardewArchipelago/GameModifications/ShopStockGenerator.cs +++ b/StardewArchipelago/GameModifications/ShopStockGenerator.cs @@ -555,7 +555,8 @@ private void AddSeedToSandyStock(Dictionary sandyStock, int ite var random = new Random((int)Game1.stats.DaysPlayed + (int)Game1.uniqueIDForThisGame / 2 + itemId); var priceMultiplier = 1.0; - var howManyInStock = GetVillagerMaxAmountAndPrice(null, false, ref priceMultiplier); + var maxStock = GetVillagerMaxAmountAndPrice(null, false, ref priceMultiplier); + var howManyInStock = random.Next(maxStock); if (howManyInStock < 5) { return;