mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Update Crafting.md
Fixed an example.
This commit is contained in:
parent
481bce2ca8
commit
e8e4bcbcad
1 changed files with 2 additions and 2 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue