Use item keys in action-bar consumables

This commit is contained in:
Meta Vens 2026-06-15 03:28:30 +01:00
commit b24811a69a
4 changed files with 8 additions and 4 deletions

Binary file not shown.

View file

@ -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

View file

@ -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 ?? "";
}

View file

@ -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<T>()` 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