Update README.md for contrib.game_systems.crafting:
* Update submodule paths in documentation. contrib.crafting.crafting -> contrib.game_systems.crafting
This commit is contained in:
parent
5d0d6e039e
commit
d52e1ce651
1 changed files with 4 additions and 4 deletions
|
|
@ -115,7 +115,7 @@ class RecipeBread(CraftingRecipe):
|
||||||
## Adding new recipes
|
## Adding new recipes
|
||||||
|
|
||||||
A *recipe* is a class inheriting from
|
A *recipe* is a class inheriting from
|
||||||
`evennia.contrib.crafting.crafting.CraftingRecipe`. This class implements the
|
`evennia.contrib.game_systems.crafting.CraftingRecipe`. This class implements the
|
||||||
most common form of crafting - that using in-game objects. Each recipe is a
|
most common form of crafting - that using in-game objects. Each recipe is a
|
||||||
separate class which gets initialized with the consumables/tools you provide.
|
separate class which gets initialized with the consumables/tools you provide.
|
||||||
|
|
||||||
|
|
@ -137,7 +137,7 @@ example setting:
|
||||||
```python
|
```python
|
||||||
# in mygame/world/myrecipes.py
|
# in mygame/world/myrecipes.py
|
||||||
|
|
||||||
from evennia.contrib.crafting.crafting import CraftingRecipe
|
from evennia.contrib.game_systems.crafting import CraftingRecipe
|
||||||
|
|
||||||
class WoodenPuppetRecipe(CraftingRecipe):
|
class WoodenPuppetRecipe(CraftingRecipe):
|
||||||
"""A puppet""""
|
"""A puppet""""
|
||||||
|
|
@ -200,7 +200,7 @@ in-game command:
|
||||||
In code we would do
|
In code we would do
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from evennia.contrib.crafting.crafting import craft
|
from evennia.contrib.game_systems.crafting import craft
|
||||||
puppet = craft(crafter, "wooden puppet", knife, wood)
|
puppet = craft(crafter, "wooden puppet", knife, wood)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
@ -259,7 +259,7 @@ parent class and have your recipes inherit from this.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from random import randint
|
from random import randint
|
||||||
from evennia.contrib.crafting.crafting import CraftingRecipe
|
from evennia.contrib.game_systems.crafting import CraftingRecipe
|
||||||
|
|
||||||
class SkillRecipe(CraftingRecipe):
|
class SkillRecipe(CraftingRecipe):
|
||||||
"""A recipe that considers skill"""
|
"""A recipe that considers skill"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue