From e8e4bcbcad87ae6bf10ba88a5ee42b88ad7f95ef Mon Sep 17 00:00:00 2001 From: Griatch Date: Mon, 15 Feb 2021 17:26:45 +0100 Subject: [PATCH] Update Crafting.md Fixed an example. --- docs/source/Contribs/Crafting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/Contribs/Crafting.md b/docs/source/Contribs/Crafting.md index 0d62f1fc14..b3d909564d 100644 --- a/docs/source/Contribs/Crafting.md +++ b/docs/source/Contribs/Crafting.md @@ -41,7 +41,7 @@ In code, you can craft using the `evennia.contrib.crafting.crafting.craft` funct ```python from evennia.contrib.crafting.crafting import craft -result = craft(caller, *inputs) +result = craft(caller, "recipename", *inputs) ``` Here, `caller` is the one doing the crafting and `*inputs` is any combination of consumables and/or tool @@ -219,4 +219,4 @@ of a random skill-check being implemented in a parent and then inherited for mul If you want to build something even more custom (maybe using different input types of validation logic) you could also look at the `CraftingRecipe` parent class `CraftingRecipeBase`. It implements just the minimum needed to be a recipe and for big changes you may be better off starting -from this rather than the more opinionated `CraftingRecipe`. \ No newline at end of file +from this rather than the more opinionated `CraftingRecipe`.