CanRecycle
Usage
- Return a bool value to override default behavior
Example Autogenerated
csharp
private bool? CanRecycle( Recycler instance, Item slot )
{
Puts( "CanRecycle works!" );
return null;
}Location
- Recycler::HasRecyclable()
csharp
public bool HasRecyclable()
{
for (int i = 0; i < 6; i++)
{
Item slot = base.inventory.GetSlot(i);
object obj = Interface.CallHook("CanRecycle", this, slot);
if (obj is bool)
{
return (bool)obj;
}
if (CanBeRecycled(slot))
//---