Use typed shapes for equipped item insets

This commit is contained in:
Meta Vens 2026-06-14 05:44:27 +01:00
commit 48178a969b
3 changed files with 10 additions and 6 deletions

View file

@ -1380,8 +1380,9 @@ public class EquippedItem
ItemManager.GameplaySettings.DurabilityQualityMin,
ItemManager.GameplaySettings.DurabilityQualityMax,
pow(item.Quality, ItemManager.GameplaySettings.DurabilityQualityExponent));
var hullData = itemManager.GetData(entity.Hull);
InsetShape = hullData.Shape.Inset(Data.Shape, position, item.Rotation);
var hullShape = ItemManager.GetRuntimeShape(entity.Hull);
var itemShape = ItemManager.GetRuntimeShape(item);
InsetShape = hullShape.Inset(itemShape, position, item.Rotation);
if (Entity.Temperature != null) oldTemperature = Temperature;
Online = new ReadOnlyReactiveProperty<bool>(ThermalOnline