Expose item reference API on runtime instances

This commit is contained in:
Meta Vens 2026-06-14 11:19:27 +01:00
commit 22e7d0a972
5 changed files with 25 additions and 12 deletions

View file

@ -398,7 +398,7 @@ public class ItemManager
{
return new SimpleCommodity
{
Data = CreateReference(itemId),
Reference = CreateReference(itemId),
Quantity = count
};
}
@ -444,14 +444,14 @@ public class ItemManager
{
return new ConsumableItem
{
Data = CreateReference(itemId),
Reference = CreateReference(itemId),
Quality = quality
};
}
return new CompoundCommodity
{
Data = CreateReference(itemId),
Reference = CreateReference(itemId),
Quality = quality
};
}
@ -471,7 +471,7 @@ public class ItemManager
return new EquippableItem
{
Data = CreateReference(itemId),
Reference = CreateReference(itemId),
Quality = quality,
Durability = item.Durability > 0 ? (float)item.Durability : 1f
};