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
//---
	Item slot = this.purifiedWaterStorage.inventory.GetSlot(0);
	if (this.stopWhenOutputFull && slot != null && slot.amount >= slot.MaxStackable())
	{
		return;
	}
	if (Interface.CallHook("OnWaterPurify", this, timeCooked) != null)
	{
		return;
	}
	float num = timeCooked * ((float)this.waterToProcessPerMinute / 60f);
	if (slot != null)
//---

Released under the MIT License.