Skip to content

OnQuarryConsumeFuel

Usage

  • Return TYPE to prevent default behavior

Example Autogenerated

csharp
private void OnQuarryConsumeFuel( MiningQuarry instance, Item item )
{
    Puts( "OnQuarryConsumeFuel works!" );
}

Location

  • MiningQuarry::FuelCheck()
csharp
//---
	if (this.pendingWork > 0f)
	{
		return true;
	}
	Item item = this.fuelStoragePrefab.instance.GetComponent<StorageContainer>().inventory.FindItemByItemName("diesel_barrel");
	object returnvar = Interface.CallHook("OnQuarryConsumeFuel", this, item);
	if (returnvar is Item)
	{
		item = (Item)returnvar;
	}
	if (item != null && item.amount >= 1)
//---

Released under the MIT License.