Use typed shapes for inventory UI masks

This commit is contained in:
Meta Vens 2026-06-14 01:54:28 +01:00
commit dc8c3353cf
4 changed files with 8 additions and 8 deletions

View file

@ -214,10 +214,7 @@ public class InventoryMenu : MonoBehaviour
.ToArray();
}
var shape = GameManager.ItemManager.GetData(item).Shape;
return shape.Coordinates
.Select(cell => shape.Rotate(cell, item.Rotation) + position)
.ToArray();
return Array.Empty<int2>();
}
private static AetheriaRuntimeCatalogItem FindTypedInventoryItem(ItemInstance item)

View file

@ -883,7 +883,7 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler
if (typedItem != null && typedItem.ShapeCells.Count > 0)
return ToShape(typedItem);
return GameManager.ItemManager.GetData(item).Shape;
return new Shape(1, 1);
}
private static Shape ToShape(AetheriaRuntimeCatalogItem item)