From b24811a69a6e8ac15174b2f1359e7e846a3aa901 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 15 Jun 2026 03:28:30 +0100 Subject: [PATCH] Use item keys in action-bar consumables --- .voidbot/state/aetheria.cc | Bin 100126 -> 100336 bytes Aetheria.State/README.md | 4 +++- Assets/Scripts/Gameplay/ActionBarSlot.cs | 3 +-- docs/aetheria-perfect-machine-map.md | 5 ++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index 3d4d5febb6b369e5fef66c3ee6b23e9b211802ee..405aabdf74b1a466f94534d43f39bbf1684a953d 100644 GIT binary patch delta 1075 zcmZ`&O=uHA7?o6DSm`1B2 zJt~SUxHm7Nf>bEv(1Qo*p+Zls1rG($gWy$r5bVv_&8BWE-iGh@&3o^A{{0Jaa_>qjIx;=c> z*T(kykCN1_V2BGUr&Z|L-~!|!}0ngEbp@TF6qLfE}>0q?T zfh0|%4i`dZQX*85L5d@naPvK2b)fg3Mdd58A>EC4Y@vGI=4F`N^=XA4hT<33(z7#jOTD( zt+dCjwW}d}_?i;6)_;Gp192spjGg(%dRvTyx0*$rLAS7uh=!`a`Le#!9jxpaWLZ#^ zJ>-{ts>1)NssQ%&14`TQGat+U6^Mf@CFrv8VYPTW!6d->iz=cetB hDWy;?>UZznE>9^Bs-bwy>6;t9tIRievA)Q__#db=gOvaP delta 1119 zcmZ8gL1+^}6m?rERuP0+L=pTTA{I?-wPIQ?YO1DIsI`ie9y;0mO~%a5tTVH*5p7ZN zBq*|n+`Nbiq96q6Q9OtUf>!WQ^deq8=tQg*XfO3b=+zp2kMCGyxc-Eb!5%zZ5`z=wOy;-H=~CqLTR~=z%BaV zGRuT2fKaLw1|ZcXV6KaSHFPDFT7Qtt8F`Dy}(( z1?Ew7P(<q(~OT zQfed)`H%}6U3|WA;Zs(Tik2`gtyW%0p)FsUk~dA~vaXd*<{}x16dWaMP#f?=W6508 zJ`%ANC$ZA>c(_R`m!){NP-$3@M{t!aqqYszB=hOe;GAxAVMQ{Cn-J6w*$!=R8^P3L zCf%aa6F6%=ugc!IPxG`qHcm6dNV~Msg;XSG($W0V`dayY=s4Nv+Y)Ri`S!%)3;*$K zs^EsU*8icpWBkM!%Phjg$l>g%5mL}q+B4vx!1~0fS=tO;P-$XjLZ9UYHpV?!A@WQM z#XOU0be4&JoZDK3^Ugpt{p;g~Cs^hlN*9y%t52t#>00maa=LoG&pFhcEcd?5;_E(V z-RYJ8=zZtrWUUAL_s45p?YZK-Xh8>)-S4XYyyB=ejXHw^(T~ne)tgtHYt6uc!8mYn N$Gr2hyM<+@{sPG0lpz2B 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