Skip to content

Commit

Permalink
fix: Fixes amount error spam from scissors (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman authored Mar 30, 2024
1 parent e638fb7 commit 3921593
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Projects/Server/Items/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4121,28 +4121,18 @@ public virtual void OnSingleClick(Mobile from)
}
}

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;

Expand Down

0 comments on commit 3921593

Please sign in to comment.