Skip to content

OnWaterPurify

Usage

  • Return a non-null value or bool to override default behavior

Example Autogenerated

csharp
private void OnWaterPurify( WaterPurifier instance, float timeCooked )
{
    Puts( "OnWaterPurify works!" );
}

Location

  • WaterPurifier::ConvertWater(float timeCooked)
csharp
//---
		if (slot != null && slot.amount >= slot.MaxStackable())
		{
			return;
		}
	}
	if (Interface.CallHook("OnWaterPurify", this, timeCooked) != null)
	{
		return;
	}
	float num = timeCooked * ((float)this.waterToProcessPerMinute / 60f);
	this.dirtyWaterProcssed += num;
//---

Released under the MIT License.