Skip to content

OnWaterPurify ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

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

Location ​

  • WaterPurifier::ConvertWater(float timeCooked)
csharp
protected void ConvertWater(float timeCooked)
{
	Item slot = purifiedWaterStorage.inventory.GetSlot(0);
	if ((stopWhenOutputFull && slot != null && slot.amount >= slot.MaxStackable()) || Interface.CallHook("OnWaterPurify", this, timeCooked) != null)
	{
		return;
	}
	float num = timeCooked * ((float)waterToProcessPerMinute / 60f);
	if (slot != null)
//---

Released under the MIT License.