Centralize catalog item object lookup
This commit is contained in:
parent
b32a412df2
commit
0cf4591b8f
11 changed files with 24 additions and 21 deletions
|
|
@ -21,7 +21,7 @@ public static class AetheriaUnityWeaponPresentationPolicy
|
|||
AetheriaRuntimeCatalogSnapshot runtimeCatalog,
|
||||
EquippedItem item)
|
||||
{
|
||||
var typedItem = runtimeCatalog?.FindItem(item?.EquippableItem?.ItemKey ?? "");
|
||||
var typedItem = runtimeCatalog?.FindItem(item?.EquippableItem, x => x.ItemKey);
|
||||
if (typedItem?.BehaviorKinds == null)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue