fix: Fixes amount error spam from scissors (#1715)
This commit is contained in:
parent
e638fb7893
commit
39215935cf
1 changed files with 2 additions and 12 deletions
|
|
@ -4121,28 +4121,18 @@ public class Item : IHued, IComparable<Item>, ISpawnable, IObjectPropertyListEnt
|
|||
}
|
||||
}
|
||||
|
||||
public virtual void ScissorHelper(Mobile from, Item newItem, int amountPerOldItem)
|
||||
{
|
||||
ScissorHelper(from, newItem, amountPerOldItem, true);
|
||||
}
|
||||
|
||||
public virtual void ScissorHelper(Mobile from, Item newItem, int amountPerOldItem, bool carryHue)
|
||||
public virtual void ScissorHelper(Mobile from, Item newItem, int amountPerOldItem, bool carryHue = true)
|
||||
{
|
||||
// let's not go over 60000
|
||||
var amount = Math.Min(Amount, 60000 / amountPerOldItem);
|
||||
|
||||
Amount -= amount;
|
||||
|
||||
var ourHue = Hue;
|
||||
var thisMap = Map;
|
||||
var thisParent = m_Parent;
|
||||
var worldLoc = GetWorldLocation();
|
||||
var type = LootType;
|
||||
|
||||
if (Amount == 0)
|
||||
{
|
||||
Delete();
|
||||
}
|
||||
Consume(amount);
|
||||
|
||||
newItem.Amount = amount * amountPerOldItem;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue