Skip to content

Fusion.AddProcCodeFun ​

Source Code | Usage Examples | Fusion Functions

Creates a Fusion Summon recipe for monsters that use 1 specifically named material, and an exact number of materials that match a filter.

Signature ​

Fusion.AddProcCodeFun(Card c, int code1, FusionRecipeFilter filter, int ct, bool sub, bool insf) → nil

lua
Fusion.AddProcCodeFun(c,code1,filter,ct,sub,insf)

Parameters ​

  • Card c ​

    The monster receiving the recipe.

  • int code1 ​

    The ID of the first material.

  • FusionRecipeFilter filter ​

    A function that must return true for every other material.

  • int ct ​

    The number of materials that must match the filter.

  • bool sub ​

    A boolean denoting if Fusion Substitutes (e.g. King of the Swamp) are allowed in the materials.

  • bool insf ​

    A boolean denoting if Fusion Summoning without materials (e.g. Instant Fusion) is allowed.