Skip to content

OnDroppedItemCombined

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnDroppedItemCombined( DroppedItem instance )
{
    Puts( "OnDroppedItemCombined works!" );
}

Location

  • DroppedItem::OnDroppedOn(DroppedItem di)
csharp
//---
{
	if (item == null || Interface.CallHook("CanCombineDroppedItem", this, di) != null || NeverCombine || di.NeverCombine || !item.CanStack(di.item))
	{
		return;
	}
	Interface.CallHook("OnDroppedItemCombined", this);
	int num = di.item.amount + item.amount;
	if (num <= item.MaxStackable() && num != 0)
	{
		if (di.DropReason == DropReasonEnum.Player)
		{
//---

Released under the MIT License.