Skip to content

Commit 9fa1433

Browse files
committed
Fix duplicate scans returning one less item than intended.
1 parent e6fdf03 commit 9fa1433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SubnauticaRandomiser/Patches/FragmentPatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static void YieldMaterial(TechType target)
9090

9191
RandomHandler rand = new RandomHandler();
9292
TechType type = GetRandomMaterial(rand, saveData);
93-
int number = rand.Next(1, saveData.MaxMaterialYield);
93+
int number = rand.Next(1, saveData.MaxMaterialYield + 1);
9494
_log.Debug($"Replacing duplicate fragment scan yield of target {target} with {type}");
9595
CraftData.AddToInventory(type, number, false, true);
9696
}

0 commit comments

Comments
 (0)