<spanid="evennia-contrib-game-systems-crafting-example-recipes"></span><h1>evennia.contrib.game_systems.crafting.example_recipes<aclass="headerlink"href="#module-evennia.contrib.game_systems.crafting.example_recipes"title="Permalink to this headline">¶</a></h1>
<p>How to make a sword - example crafting tree for the crafting system.</p>
<p>See the <strong>SwordSmithingBaseRecipe</strong> in this module for an example of extendng the
recipe with a mocked ‘skill’ system (just random chance in our case). The skill
system used is game-specific but likely to be needed for most ‘real’ crafting
systems.</p>
<p>Note that ‘tools’ are references to the tools used - they don’t need to be in
the inventory of the crafter. So when ‘blast furnace’ is given below, it is a
reference to a blast furnace used, not suggesting the crafter is carrying it
around with them.</p>
<sectionid="sword-crafting-tree">
<h2>Sword crafting tree<aclass="headerlink"href="#sword-crafting-tree"title="Permalink to this headline">¶</a></h2>
<divclass="highlight-default notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># base materials (consumables)</span>
<codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">random</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ x in the interval [0, 1).<aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.random"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">PigIronRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#PigIronRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.PigIronRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'pig iron'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.PigIronRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">tool_tags</code><emclass="property"> = ['blast furnace']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.PigIronRecipe.tool_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">consumable_tags</code><emclass="property"> = ['iron ore', 'coal', 'coal']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.PigIronRecipe.consumable_tags"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">CrucibleSteelRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#CrucibleSteelRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.CrucibleSteelRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'crucible steel'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.CrucibleSteelRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">tool_tags</code><emclass="property"> = ['crucible']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.CrucibleSteelRecipe.tool_tags"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">SwordBladeRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#SwordBladeRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordBladeRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'sword blade'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordBladeRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">tool_tags</code><emclass="property"> = ['hammer', 'anvil', 'furnace']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordBladeRecipe.tool_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">consumable_tags</code><emclass="property"> = ['crucible steel']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordBladeRecipe.consumable_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">output_prototypes</code><emclass="property"> = [{'key': 'Sword blade', 'desc': 'A long blade that may one day become a sword.', 'tags': [('sword blade', 'crafting_material')]}]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordBladeRecipe.output_prototypes"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">SwordPommelRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#SwordPommelRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordPommelRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'sword pommel'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordPommelRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">tool_tags</code><emclass="property"> = ['hammer', 'anvil', 'furnace']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordPommelRecipe.tool_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">consumable_tags</code><emclass="property"> = ['crucible steel']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordPommelRecipe.consumable_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">output_prototypes</code><emclass="property"> = [{'key': 'Sword pommel', 'desc': 'The pommel for a future sword.', 'tags': [('sword pommel', 'crafting_material')]}]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordPommelRecipe.output_prototypes"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">SwordGuardRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#SwordGuardRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordGuardRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'sword guard'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordGuardRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">tool_tags</code><emclass="property"> = ['hammer', 'anvil', 'furnace']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordGuardRecipe.tool_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">consumable_tags</code><emclass="property"> = ['crucible steel']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordGuardRecipe.consumable_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">output_prototypes</code><emclass="property"> = [{'key': 'Sword guard', 'desc': 'The cross-guard for a future sword.', 'tags': [('sword guard', 'crafting_material')]}]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordGuardRecipe.output_prototypes"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">RawhideRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#RawhideRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.RawhideRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'rawhide'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.RawhideRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">tool_tags</code><emclass="property"> = ['knife']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.RawhideRecipe.tool_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">consumable_tags</code><emclass="property"> = ['fur']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.RawhideRecipe.consumable_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">output_prototypes</code><emclass="property"> = [{'key': 'Rawhide', 'desc': 'Animal skin, cleaned and with hair removed.', 'tags': [('rawhide', 'crafting_material')]}]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.RawhideRecipe.output_prototypes"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">OakBarkRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#OakBarkRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.OakBarkRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'oak bark'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.OakBarkRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">tool_tags</code><emclass="property"> = ['knife']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.OakBarkRecipe.tool_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">consumable_tags</code><emclass="property"> = ['oak wood']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.OakBarkRecipe.consumable_tags"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">LeatherRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#LeatherRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.LeatherRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'leather'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.LeatherRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">tool_tags</code><emclass="property"> = ['cauldron']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.LeatherRecipe.tool_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">consumable_tags</code><emclass="property"> = ['rawhide', 'oak bark', 'water']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.LeatherRecipe.consumable_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">output_prototypes</code><emclass="property"> = [{'key': 'Piece of Leather', 'desc': 'A piece of leather.', 'tags': [('leather', 'crafting_material')]}]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.LeatherRecipe.output_prototypes"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">SwordHandleRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#SwordHandleRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordHandleRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'sword handle'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordHandleRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">tool_tags</code><emclass="property"> = ['knife']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordHandleRecipe.tool_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">consumable_tags</code><emclass="property"> = ['cleaned oak wood']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordHandleRecipe.consumable_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">output_prototypes</code><emclass="property"> = [{'key': 'Sword handle', 'desc': "Two pieces of wood to be be fitted onto a sword's tang as its handle.", 'tags': [('sword handle', 'crafting_material')]}]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordHandleRecipe.output_prototypes"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">SwordRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#SwordRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'sword'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">tool_tags</code><emclass="property"> = ['hammer', 'furnace', 'knife']</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordRecipe.tool_tags"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">output_prototypes</code><emclass="property"> = [{'key': 'Sword', 'desc': 'A bladed weapon.', 'tags': [('sword', 'crafting_material')]}]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordRecipe.output_prototypes"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">exact_consumable_order</code><emclass="property"> = True</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.SwordRecipe.exact_consumable_order"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">FireballRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#FireballRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.FireballRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'fireball'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.FireballRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">skill_requirements</code><emclass="property"> = [('firemagic', 10)]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.FireballRecipe.skill_requirements"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">skill_roll</code><emclass="property"> = 'firemagic'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.FireballRecipe.skill_roll"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">success_message</code><emclass="property"> = 'A ball of flame appears!'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.FireballRecipe.success_message"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">failure_effects</code><emclass="property"> = [('self_fire_damage', 5), ('mana_cost', 5)]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.FireballRecipe.failure_effects"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">HealingRecipe</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">crafter</span></em>, <emclass="sig-param"><spanclass="o">*</span><spanclass="n">inputs</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#HealingRecipe"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.HealingRecipe"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">name</code><emclass="property"> = 'heal'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.HealingRecipe.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">skill_requirements</code><emclass="property"> = [('bodymagic', 5), ('empathy', 10)]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.HealingRecipe.skill_requirements"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">skill_roll</code><emclass="property"> = 'bodymagic'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.HealingRecipe.skill_roll"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">success_message</code><emclass="property"> = 'You successfully extend your healing aura.'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.HealingRecipe.success_message"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">desired_effects</code><emclass="property"> = [('healing', 15), ('mana_cost', 5)]</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.HealingRecipe.desired_effects"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">failure_effects</code><emclass="property"> = []</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.HealingRecipe.failure_effects"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">evennia.contrib.game_systems.crafting.example_recipes.</code><codeclass="sig-name descname">CmdCast</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#CmdCast"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.CmdCast"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">key</code><emclass="property"> = 'cast'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.CmdCast.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">parse</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#CmdCast.parse"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.CmdCast.parse"title="Permalink to this definition">¶</a></dt>
<dd><p>Simple parser, assuming spellname doesn’t have spaces.
Stores result in self.target and self.spellname.</p>
<codeclass="sig-name descname">func</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="../_modules/evennia/contrib/game_systems/crafting/example_recipes.html#CmdCast.func"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.CmdCast.func"title="Permalink to this definition">¶</a></dt>
<dd><p>This is the actual executing part of the command. It is
called directly after self.parse(). See the docstring of this
module for which object properties are available (beyond those
<codeclass="sig-name descname">aliases</code><emclass="property"> = []</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.CmdCast.aliases"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">help_category</code><emclass="property"> = 'general'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.CmdCast.help_category"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">lock_storage</code><emclass="property"> = 'cmd:all();'</em><aclass="headerlink"href="#evennia.contrib.game_systems.crafting.example_recipes.CmdCast.lock_storage"title="Permalink to this definition">¶</a></dt>