Expose item reference API on runtime instances
This commit is contained in:
parent
d163b3064c
commit
22e7d0a972
5 changed files with 25 additions and 12 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue