FireControl.Extract stamps every mined stack with the Extracted lot of its zone, belt and ore

Extracted gains Body at key 2. ItemManager.ExtractedLot finds or mints the lot; its
(zone, belt, ore) index is derived from the ledger at construction and never saved.
SavedGame roots skip null items and Lot 0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Nibu 2026-11-13 03:03:25 +00:00
commit df67c875e3
4 changed files with 34 additions and 3 deletions

View file

@ -137,6 +137,8 @@ public class Produced : Provenance
[MessagePackObject]
public class Extracted : Provenance
{
// Zone is the zone's index in galaxy.Zones (SavedGame's convention), -1 with no galaxy; Body is the belt.
[Key(0)] public int Zone;
[Key(1)] public CultRecordRef<SimpleCommodityData> Commodity;
[Key(2)] public CultRecordRef<BodyData> Body;
}