diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index a1de77e1a..068e2b299 100644 Binary files a/.voidbot/state/aetheria.cc and b/.voidbot/state/aetheria.cc differ diff --git a/Assets/Scripts/Zone Display/ZoneRenderer.cs b/Assets/Scripts/Zone Display/ZoneRenderer.cs index b66d0027a..2923128e6 100644 --- a/Assets/Scripts/Zone Display/ZoneRenderer.cs +++ b/Assets/Scripts/Zone Display/ZoneRenderer.cs @@ -574,7 +574,7 @@ public class ZoneRenderer : MonoBehaviour { SimpleCommodity _ => Instantiate(SimpleCommodityPickup), CompoundCommodity _ => Instantiate(CompoundCommodityPickup), - EquippableItem equippableItem when IsWeaponPickup(equippableItem, typedItem) => Instantiate(WeaponPickup), + EquippableItem _ when IsWeaponPickup(typedItem) => Instantiate(WeaponPickup), EquippableItem _ => Instantiate(GearPickup), _ => throw new NotImplementedException() }; @@ -586,7 +586,7 @@ public class ZoneRenderer : MonoBehaviour var itemPickup = gridObject.gameObject.GetComponent(); itemPickup.Item = item; itemPickup.ZoneRenderer = this; - itemPickup.ScanLabel.text = typedItem?.Name ?? ItemManager.GetData(item).Name; + itemPickup.ScanLabel.text = typedItem?.Name ?? "Unknown Item"; if (item is CraftedItemInstance craftedItemInstance) { var c = ItemManager.GetTier(craftedItemInstance).tier.Color.ToColor(); @@ -598,12 +598,9 @@ public class ZoneRenderer : MonoBehaviour _loot.Add(itemPickup); } - private bool IsWeaponPickup(EquippableItem item, AetheriaRuntimeCatalogItem typedItem) + private static bool IsWeaponPickup(AetheriaRuntimeCatalogItem typedItem) { - if (typedItem != null) - return string.Equals(typedItem.Category, nameof(WeaponItemData), StringComparison.Ordinal); - - return ItemManager.GetData(item) is WeaponItemData; + return typedItem != null && string.Equals(typedItem.Category, nameof(WeaponItemData), StringComparison.Ordinal); } private static AetheriaRuntimeCatalogItem FindTypedPickupItem(ItemInstance item) diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 515aa963a..b43cdd449 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -161,7 +161,8 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. 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 presentation now uses typed catalog category/name rows to choose weapon-vs-gear - pickup visuals and scan labels before falling back to legacy item projections. + pickup visuals and scan labels; missing typed rows degrade to generic unknown + pickup presentation instead of falling back to legacy item projections. The item properties panel also reads typed catalog title names, descriptions, manufacturer, base mass, max durability, thermal bounds, and thermal performance curve keys for basic item presentation without hydrating legacy @@ -637,6 +638,9 @@ First Aetheria surfaces to publish: - Done: import typed thermal performance curve keys and move PropertiesPanel thermal curve presentation onto typed catalog rows; legacy thermal curves are fallback projection only for incomplete imported rows. + - Done: remove the loot pickup presentation fallback to legacy `ItemData`; + typed category/name rows now decide pickup visuals and scan labels, and + missing typed rows render generic unknown gear pickup presentation. - Done: delete the console `give` command instead of preserving a debug operator path that hydrated typed item rows back into legacy item DTOs. - Done: delete `ItemManager.GetCatalogEntries` after all live callers