Skip to content

CanStackItem ​

Usage ​

  • Return a bool value to override default behavior

Example Autogenerated ​

csharp
private bool? CanStackItem( Item instance, Item item )
{
    Puts( "CanStackItem works!" );
    return null;
}

Location ​

  • Item::CanStack(Item item)
csharp
public bool CanStack(Item item)
{
	object obj = Interface.CallHook("CanStackItem", this, item);
	if (obj is bool)
	{
		return (bool)obj;
	}
	if (item == this)
//---

Released under the MIT License.