diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index 3d4d5febb..405aabdf7 100644 Binary files a/.voidbot/state/aetheria.cc and b/.voidbot/state/aetheria.cc differ diff --git a/Aetheria.State/README.md b/Aetheria.State/README.md index ec4d6a358..745978f9d 100644 --- a/Aetheria.State/README.md +++ b/Aetheria.State/README.md @@ -91,7 +91,9 @@ Cargo inventory indexes, consumable activation lookup, action-bar consumable quantity/fill, transfer lookup, trade owned counts, weapon ammo references, and item-use behavior references now use item keys. The old cargo/consumable GUID lookup overloads and the derived behavior `AmmoType`/`Item` GUID properties -have been deleted. +have been deleted. Action-bar consumable bindings now read the target `ItemKey` +directly from typed runtime catalog rows instead of reconstructing it from +legacy item IDs. Unity runtime commit DTOs carry typed `ItemKey`/`HullItemKey` fields only for loadout items, action-bar targets, body resources, entity hulls, and active consumables; the commit applier no longer reconstructs item keys from legacy diff --git a/Assets/Scripts/Gameplay/ActionBarSlot.cs b/Assets/Scripts/Gameplay/ActionBarSlot.cs index c4b1b926d..8e791ebc0 100644 --- a/Assets/Scripts/Gameplay/ActionBarSlot.cs +++ b/Assets/Scripts/Gameplay/ActionBarSlot.cs @@ -94,8 +94,7 @@ public class ActionBarConsumableBinding : ActionBarBinding else Slot.Fill.fillAmount = instance.RemainingDuration / instance.Duration; } - public string TargetItemKey => - Guid.TryParse(Target?.LegacyId, out var legacyId) ? AetheriaRuntimeItemReference.FromLegacyId(legacyId) : ""; + public string TargetItemKey => Target?.ItemKey ?? ""; } diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 31f230060..2d2469649 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -1159,7 +1159,7 @@ First Aetheria surfaces to publish: has `0` consumable item rows, so future consumable content still needs typed coverage. - Done: delete `Entity` consumable activation overloads that accepted - `ConsumableItemData`; active lookup uses item ids and activation commands + `ConsumableItemData`; active lookup uses item keys and activation commands accept typed runtime catalog rows only. - Done: delete dead `Entity.GetBehaviorData()` and stale commented switch/trigger/axis behavior-query helpers; entity-level behavior queries @@ -1235,6 +1235,9 @@ First Aetheria surfaces to publish: - Done: delete the runtime catalog raw-GUID string fallback and unused reverse legacy-GUID projections from `AetheriaRuntimeItemReference`; catalog lookup accepts canonical item keys only. + - Done: move action-bar consumable bindings off `Target.LegacyId` parsing; + they read the typed runtime row `ItemKey` directly for HUD fill/count and + runtime commit projection. - Remove runtime dependency on `ItemData` DTOs as item instance owners. 5. Mesh host