Skip to content

Commit

Permalink
- Fixed Sandy stock randomness
Browse files Browse the repository at this point in the history
  • Loading branch information
agilbert1412 committed Jan 22, 2024
1 parent 5a628ce commit 3d8d1ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion StardewArchipelago/GameModifications/ShopStockGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ private void AddSeedToSandyStock(Dictionary<ISalable, int[]> 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;
Expand Down

0 comments on commit 3d8d1ba

Please sign in to comment.