Skip to content

OnFuelConsume

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnFuelConsume( BaseOven instance, Item fuel, ItemModBurnable burnable )
{
    Puts( "OnFuelConsume works!" );
}

Location

  • BaseOven::ConsumeFuel(Item fuel, ItemModBurnable burnable)
csharp
private void ConsumeFuel(Item fuel, ItemModBurnable burnable)
{
	if (Interface.CallHook("OnFuelConsume", this, fuel, burnable) != null)
	{
		return;
	}
	if (this.allowByproductCreation && burnable.byproductItem != null && UnityEngine.Random.Range(0f, 1f) > burnable.byproductChance)
	{
//---

Released under the MIT License.