1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-02-04 18:22:18 +08:00

collector max value fix

This commit is contained in:
2026-01-14 19:39:02 +08:00
parent 2201de2b1b
commit 6eb9161af1

View File

@@ -427,7 +427,7 @@ public static class LogisticsPatch
if (planetFactory == null || station.entityId <= 0 || station.entityId >= planetFactory.entityCursor) continue; if (planetFactory == null || station.entityId <= 0 || station.entityId >= planetFactory.entityCursor) continue;
var modelProto = LDB.models.Select(planetFactory.entityPool[station.entityId].modelIndex); var modelProto = LDB.models.Select(planetFactory.entityPool[station.entityId].modelIndex);
itemCountMax = modelProto == null ? 0 : modelProto.prefabDesc.stationMaxItemCount; itemCountMax = modelProto == null ? 0 : modelProto.prefabDesc.stationMaxItemCount;
itemCountMax += station.isStellar ? GameMain.history.remoteStationExtraStorage : GameMain.history.localStationExtraStorage; itemCountMax += station.isStellar && !station.isCollector ? GameMain.history.remoteStationExtraStorage : GameMain.history.localStationExtraStorage;
} }
if (newMax > itemCountMax) if (newMax > itemCountMax)