From 613ef9a185f2913d650a4d6f2c2547c2bcfe4178 Mon Sep 17 00:00:00 2001 From: soul Date: Fri, 27 Nov 2026 19:36:55 +0100 Subject: [PATCH] StationServices: say ore stack, not mined stack (ore is any design a field kind yields) Co-Authored-By: Claude Sonnet 5.5 --- Assets/Scripts/ServerShared/StationServices.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/ServerShared/StationServices.cs b/Assets/Scripts/ServerShared/StationServices.cs index 4dc29ff63..bfeb051b4 100644 --- a/Assets/Scripts/ServerShared/StationServices.cs +++ b/Assets/Scripts/ServerShared/StationServices.cs @@ -125,11 +125,11 @@ public static class StationServices private static ItemInstance[] OreStacks(ItemManager items, IEnumerable bays) => bays.SelectMany(bay => bay.Cargo.Keys.OfType().Where(stack => FieldKinds.IsOre(items.ItemData, items.GetData(stack))).Select(stack => (ItemInstance) stack)).ToArray(); - // What the station pays for every mined stack of the bays: the sum of SellPrice over the stacks TrySellOre sells. + // What the station pays for every ore stack of the bays: the sum of SellPrice over the stacks TrySellOre sells. public static int OreValue(ItemManager items, IEnumerable bays) => (int) Math.Min(OreStacks(items, bays).Sum(stack => (long) SellPrice(items, stack)), int.MaxValue); - // Sells every mined stack of the bays, each through TrySell, so the market's absorb rule and the price are the + // Sells every ore stack of the bays, each through TrySell, so the market's absorb rule and the price are the // single-stack path's. Returns the units sold. public static int TrySellOre(IEnumerable bays, Entity station, ref int credits) {