From dce2ec7591e6a93e085c1a055931039e0b248050 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 14 Jun 2026 01:27:38 +0100 Subject: [PATCH] Use typed facets for action bar icon fallback --- .voidbot/state/aetheria.cc | Bin 57436 -> 57507 bytes Assets/Scripts/Gameplay/ActionBarSlot.cs | 4 +--- docs/aetheria-perfect-machine-map.md | 9 +++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index 393c9e1adb3f4d5ddd93094d19b69032bef998c7..0f4b9a05873283a489de27582be91120ad086832 100644 GIT binary patch delta 1037 zcmaJ=&r4N76h@zjw#ZFCsGtr6wXs|N%FNXZqa-B|BXHHcnRDMAy>I3+GuP)M=s`lX zmD#k2ib{l5!dpgQ(IRxyA|s(i|3FaxKs592y_P}l&U|y`%=dlgoUa?D7jH}JYn{Cp zFAt0c!=r<9D;U@xcVyT;$(@2m(9Z4d^`G_c%NG^=arf4)s5jXmw&P@aaswhx#3P#Gf zT?KfUzt7W&Lg0eRTGEWsV6aMK!fQLv%m1MP?p|via!Nc;(2-1I=C~PGMkh!O+-@_Q zG+3J;hJaMy$+>jm9eCt^IOqEcaa&HlP~pjn8h3osEekSNqBO!gN;%C-A6STiVm zu(LjeRYDs;Q*C4oGSXLwnskOiLQJGVVU2JB6{O^kdEQV6ImS!_lWq36#I?Bt4K)3r zrTd+0SJwFVauHp;SNCpjywlR#@&7hX?B6^o+aml2Pp^y+u zQN?U(wS6*m^u#``x8FW|pPHT~iSw6A<=T)l_zYf^ozOWkwa4BEbZcDe5930Hn W`seoj0%)&vYvuF1-W(aaF!vjx5PJpy delta 952 zcmZvbF;5gh6o4Z~6fD$2LsT@6P|(21amR&I3lpIr#7GP_#KO7Vx3`n*&a5-Dz(pe} zi9MOZ&ISz$6$yzJ#sox(LSunM5`TgX|G+o97mmX2=FQD}-}~Oam94^`&BFR>M_1|Q zXr(w@uG;neUc1-v`b-uWDcQb*9xDq^yR&npT%BD$b;)*hUO&~hG0?g6x$gt~i%QPxTM%J`c}*CfxesB}SNSW2 zG2=pm6j2ibsi2M_o8$CDVGyC0rDnnh6QYV)1YWA<2s#ypM--GAL8pp}Q;;bH(@fAW zt{N1Ys1CPhLR^F-lc4EI1On05F!3biNy6$8PLi5&W>{8Txx6tB5mG|M-F=%#Q>Rpf zU_xZZIV9ki2@hLTgP)iu+1IO`w)ErgwMX|@LMc3{Xg105$D0q%)~0&;7S{Nqts(x z?hc%%wI~;BwbJZ6`oi^F`*HWv#=_pYZnsd`h5cE$k}uO}&2G^$?d)&n=jyOMD!Ao3 iZP$J!`GQqT&q&i(@kuVVxN diff --git a/Assets/Scripts/Gameplay/ActionBarSlot.cs b/Assets/Scripts/Gameplay/ActionBarSlot.cs index 69f3bd713..8d701df4a 100644 --- a/Assets/Scripts/Gameplay/ActionBarSlot.cs +++ b/Assets/Scripts/Gameplay/ActionBarSlot.cs @@ -122,9 +122,7 @@ public class ActionBarGearBinding : ActionBarBinding return ActionGameManager.Instance.Settings.GetIcon(hardpointType).texture; } - return Item.Data is WeaponItemData weaponItemData - ? ActionGameManager.Instance.Settings.GetIcon(weaponItemData.WeaponType).texture - : ActionGameManager.Instance.Settings.GetIcon(Item.Data.HardpointType).texture; + return ActionGameManager.Instance.Settings.GetIcon(HardpointType.Tool).texture; } private static AetheriaRuntimeCatalogItem FindTypedGearItem(ItemInstance item) diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 859045f77..7b0bdd9af 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -83,10 +83,11 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. still required by activation APIs. Missing typed rows are rejected for consumable binding instead of falling through to legacy DTO classification. Gear action-bar bindings use typed weapon and hardpoint facets for fallback - icon selection instead of hydrating item DTOs to classify the icon; legacy - custom action-bar icon paths remain fallback projection data. Unity boot reads - typed player settings back through the package-owned CultCache reader before - falling back to defaults. + icon selection and fall back to a generic tool icon when typed facets are + incomplete; legacy custom action-bar icon paths remain fallback projection + data because typed icon fields are not yet present. Unity boot reads typed + player settings back through the package-owned CultCache reader before falling + back to defaults. - The combat schematic HUD uses typed runtime catalog weapon facets for its static weapon icon strip before falling back to legacy `WeaponItemData`. Hull and item durability percentages use typed max durability before falling