From 903c753f195112ad20e5d7d980fa2bd8e193ee64 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 14 Jun 2026 03:24:58 +0100 Subject: [PATCH] Use typed rows for pickup presentation --- .voidbot/state/aetheria.cc | Bin 60474 -> 60549 bytes Assets/Scripts/Zone Display/ZoneRenderer.cs | 11 ++++------- docs/aetheria-perfect-machine-map.md | 6 +++++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index a1de77e1a1b83d91aae9a4efafb94fc79a700329..068e2b299f58d349b8af4e34d65abc90fd15eb9e 100644 GIT binary patch delta 1025 zcmZuwJ!=#}7&f_}#*YYo6c-TQLbS-;CKr>CL<9pN5{U$YK{yCFH~Zf1klC4aX7<9_ z93ocQ#Qh0sY{U<)(KKpdVWovZ4^kK#|Aw<4mqbbX?9TJP&&Rv@v+%G}c(c)aY;&c&a5AEn5IGg28#5m~s`MW!<3Xy5tX?Hlb&eM9Zy%z~5#LPl4k5JH6- zg&~GX5kG!ayui^TvPx8+){ul!lpDJ2AyNA#)=5nR5iV#-1aMMAuCGAAv}VEs(+ttgxLouUaWUca zP@rNIBC#sunt;~+&4CGRkhmc0;5S`mbNTbpvXw{+vO$25%@;WdLLIRhLXp{OxuN#O6A&mr0E{eKCr1;XMGkr zFR{T~6x0^3uD1`JZ4Z9=bNtAIr&dE}D84o{5^sDzb7EoE%1qOYbi7g;ytqed3-({X zz(vZE0_Z1OS5M~$G*+oTGsLqa2HT5UAA2spH`0(N`SqcTOjYvxJRHyL$X#?iMZfOc-$l~PZp+`F`g3S>q*DD0 D{9||I delta 935 zcmY*YJxmlq6c!E>z-UxN0VTeK0u#NzrsYx*+3%}CYHuXlxU35SXo$E>f61aXt#O$y>H(4eed1d&1`+nynNExJ2rVa zpU+KRDwgke^xLpjg%F>k}YGd9YY7N&SH#dLQKcYgU(AMH9{FU?*>Q$@uYaDzT1 z-#!x%D%2~`pDG5?UTyCV2`N3m8W;JDk zz#>x(6b+HvU`~?JoFA?UPNpTgUR}pk({eByMhOr?rZs6IFC#%#Gv%S76soMoX*Puw zfhkj(gyw!E8sXzAI#Id?I#LzppuRu>CL?Dn+^eRprz>;%znw`qc?bcCBPDiO_Z@AU zu_(B7MO^=|sgBG~w`?KzNm^Eu4G2C9(?J@RCdM?v$hMV(Q$=Syjq&=_L*A-)&b4Nu|EE|E8y18ZZ9^31V3% 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