Custom Crafting Processor - How to add EP points after crafting

Patrick

New member
In my Custom Crafting Processor it is adding EP points to the attribute manager (UCC). The issue is, that the EP points is adding after selection and not the crafting.

Selection code:
protected override bool CanCraftInternal(CraftingRecipe recipe, IInventory inventory,
ListSlice<ItemInfo> selectedIngredients, int quantity)

What should be the code if the EP is adding after the crafting (so the crafting is done including the amount of item which was crafted)?
 
The CanCraftInternal function is called to know whether or not the item should be crafted.

You should add your EP points in the CraftInternal function which is called only once you craft the item.
 
Top