Use typed trade rows for buy decisions

This commit is contained in:
Meta Vens 2026-06-14 04:02:54 +01:00
commit c4be47cad9
3 changed files with 50 additions and 15 deletions

View file

@ -156,7 +156,11 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted.
wraps rows in a typed `TradeRow`: name, mass, price, size, hardpoint type,
commodity subtype, hull ownership, and behavior-kind filters read typed
catalog rows before any legacy projection is hydrated. Legacy `ItemData`
hydration is lazy and bounded to behavior reflection columns and buy actions.
hydration is lazy and bounded to behavior reflection columns. Trade buy
decisions for crafted price, ship-hull classification, simple commodity base
price, and simple commodity stack size now read typed catalog rows; the
existing inventory transfer and ship-construction paths still own the actual
runtime mutation.
The sector properties UI also resolves
station/turret/ship counts only through typed hull classifications from the runtime catalog;
missing typed hull rows no longer fall back to legacy `HullData`. Loot pickup
@ -640,7 +644,10 @@ First Aetheria surfaces to publish:
- Done: move trade menu row presentation for name, mass, price, size,
hardpoint type, commodity subtype, hull-owned counts, and behavior-kind
filtering onto typed `TradeRow` fields; legacy `ItemData` hydration is
lazy and bounded to behavior reflection columns and buy mechanics.
lazy and bounded to behavior reflection columns.
- Done: move trade menu buy price, ship-hull classification, and simple
commodity stack-size decisions onto typed catalog rows; inventory transfer
and ship construction remain the runtime mutation owners.
- Done: move action-bar consumable drop binding onto typed catalog rows;
legacy `ConsumableItemData` resolution is lazy and bounded to activation
and active-duration fill until typed consumable effect execution exists.