OnIngredientsCollect
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnIngredientsCollect( ItemCrafter instance, ItemBlueprint bp, ItemCraftTask task, int amount, BasePlayer player )
{
Puts( "OnIngredientsCollect works!" );
}
Location
- ItemCrafter::CollectIngredients(ItemBlueprint bp, ItemCraftTask task, int amount, BasePlayer player)
csharp
private void CollectIngredients(ItemBlueprint bp, ItemCraftTask task, int amount = 1, BasePlayer player = null)
{
if (Interface.CallHook("OnIngredientsCollect", this, bp, task, amount, player) != null)
{
return;
}
List<Item> list = new List<Item>();
foreach (ItemAmount current in bp.ingredients)
//---