diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index aa611bf27..d8c987116 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 0d5a3be44..3bfccef3a 100644 --- a/Aetheria.State/README.md +++ b/Aetheria.State/README.md @@ -106,6 +106,9 @@ The old generic `RuntimeCatalogLink` abstraction, `ItemManager.GetData` hydration path, vague `ItemInstance.Data` identity field, and old `RuntimeItemReference.Projection` cache have been deleted; runtime item facts come from typed catalog rows. +ItemManager's behavior payload bridge no longer exposes a generic GUID reader; +migrated legacy-id behavior payload fields cross only through the explicit +item-key projection helper. Loadout generation now applies typed catalog prefilters for item category, hardpoint type, shape fit, hull type, and behavior kind, then instantiates generated equipment directly from typed runtime rows. diff --git a/Assets/Scripts/ServerShared/ItemManager.cs b/Assets/Scripts/ServerShared/ItemManager.cs index fdbffa6c8..9645cc16e 100644 --- a/Assets/Scripts/ServerShared/ItemManager.cs +++ b/Assets/Scripts/ServerShared/ItemManager.cs @@ -412,16 +412,11 @@ public class ItemManager return _fields.TryGetValue(key, out var value) ? checked((uint)value.NumberValue) : fallback; } - public Guid Guid(int key, Guid fallback = default) - { - return _fields.TryGetValue(key, out var value) && System.Guid.TryParse(value.LegacyIdValue, out var result) - ? result - : fallback; - } - public string ItemKey(int key, string fallback = "") { - return Guid(key) is var itemId && itemId != System.Guid.Empty + return _fields.TryGetValue(key, out var value) && + System.Guid.TryParse(value.LegacyIdValue, out var itemId) && + itemId != System.Guid.Empty ? AetheriaRuntimeItemReference.FromLegacyId(itemId) : fallback; } diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 77c50f56a..b054b81f1 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -1021,6 +1021,9 @@ First Aetheria surfaces to publish: equipped behavior instances. It now modifies the `PerformanceStat` objects actually held by runtime behavior configs instead of rebuilding temporary config DTOs from the catalog. + - Done: delete the generic `BehaviorPayloadReader.Guid(...)` helper from + `ItemManager`; migrated behavior payload legacy-ID fields now cross the + runtime bridge only through the explicit `ItemKey(...)` projection. - Done: move `StatModifier` behavior kind/family matching onto `AetheriaRuntimeBehaviorMetadataCatalog`; the behavior only normalizes migrated `*Data` tokens before asking the package-owned metadata owner.