Update Crafting.md

Fixed an example.
This commit is contained in:
Griatch 2021-02-15 17:26:45 +01:00 committed by GitHub
parent 481bce2ca8
commit e8e4bcbcad

View file

@ -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`.
from this rather than the more opinionated `CraftingRecipe`.