From 0ab0bb67a4eb2a178e2fc937193e3123bed83373 Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 6 Jan 2023 18:13:41 +0100 Subject: [PATCH] Update docs --- docs/source/Contribs/Contrib-Components.md | 2 +- docs/source/Contribs/Contrib-Crafting.md | 8 ++++---- docs/source/Contribs/Contrib-Ingame-Map-Display.md | 2 +- docs/source/Contribs/Contrib-RPSystem.md | 2 +- docs/source/Contribs/Contrib-Red-Button.md | 2 +- docs/source/Contribs/Contrib-Tutorial-World.md | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/source/Contribs/Contrib-Components.md b/docs/source/Contribs/Contrib-Components.md index 63932e24bf..aa221f860e 100644 --- a/docs/source/Contribs/Contrib-Components.md +++ b/docs/source/Contribs/Contrib-Components.md @@ -30,7 +30,7 @@ class Character(ComponentHolderMixin, DefaultCharacter): Components need to inherit the Component class directly and require a name. ```python -from evennia.contrib.components import Component +from evennia.contrib.base_systems.components import Component class Health(Component): name = "health" diff --git a/docs/source/Contribs/Contrib-Crafting.md b/docs/source/Contribs/Contrib-Crafting.md index 36e9071350..efe8639b0c 100644 --- a/docs/source/Contribs/Contrib-Crafting.md +++ b/docs/source/Contribs/Contrib-Crafting.md @@ -115,7 +115,7 @@ class RecipeBread(CraftingRecipe): ## Adding new recipes 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 separate class which gets initialized with the consumables/tools you provide. @@ -137,7 +137,7 @@ example setting: ```python # in mygame/world/myrecipes.py -from evennia.contrib.crafting.crafting import CraftingRecipe +from evennia.contrib.game_systems.crafting import CraftingRecipe class WoodenPuppetRecipe(CraftingRecipe): """A puppet"""" @@ -200,7 +200,7 @@ in-game command: In code we would do ```python -from evennia.contrib.crafting.crafting import craft +from evennia.contrib.game_systems.crafting import craft puppet = craft(crafter, "wooden puppet", knife, wood) ``` @@ -259,7 +259,7 @@ parent class and have your recipes inherit from this. ```python from random import randint -from evennia.contrib.crafting.crafting import CraftingRecipe +from evennia.contrib.game_systems.crafting import CraftingRecipe class SkillRecipe(CraftingRecipe): """A recipe that considers skill""" diff --git a/docs/source/Contribs/Contrib-Ingame-Map-Display.md b/docs/source/Contribs/Contrib-Ingame-Map-Display.md index 905203c864..34fff1c6e6 100644 --- a/docs/source/Contribs/Contrib-Ingame-Map-Display.md +++ b/docs/source/Contribs/Contrib-Ingame-Map-Display.md @@ -21,7 +21,7 @@ Specifically, in `mygame/commands/default_cmdsets.py`: ... from evennia.contrib.grid.ingame_map_display import MapDisplayCmdSet # <--- -class CharacterCmdset(default_cmds.Character_CmdSet): +class CharacterCmdset(default_cmds.CharacterCmdSet): ... def at_cmdset_creation(self): ... diff --git a/docs/source/Contribs/Contrib-RPSystem.md b/docs/source/Contribs/Contrib-RPSystem.md index 4ed4eeb644..693a98a495 100644 --- a/docs/source/Contribs/Contrib-RPSystem.md +++ b/docs/source/Contribs/Contrib-RPSystem.md @@ -166,7 +166,7 @@ This module adds no new commands; embed it in your say/emote/whisper commands. ### Usage: ```python -from evennia.contrib import rplanguage +from evennia.contrib.rpg.rpsystem import rplanguage # need to be done once, here we create the "default" lang rplanguage.add_language() diff --git a/docs/source/Contribs/Contrib-Red-Button.md b/docs/source/Contribs/Contrib-Red-Button.md index b3c30e955e..544b065434 100644 --- a/docs/source/Contribs/Contrib-Red-Button.md +++ b/docs/source/Contribs/Contrib-Red-Button.md @@ -7,7 +7,7 @@ object with its own functionality and state tracking. Create the button with - create/drop button:tutorials.red_button.RedButton + create/drop button:contrib.tutorials.red_button.RedButton Note that you must drop the button before you can see its messages! It's imperative that you press the red button. You know you want to. diff --git a/docs/source/Contribs/Contrib-Tutorial-World.md b/docs/source/Contribs/Contrib-Tutorial-World.md index dee6e663b3..c1c2c8be2e 100644 --- a/docs/source/Contribs/Contrib-Tutorial-World.md +++ b/docs/source/Contribs/Contrib-Tutorial-World.md @@ -17,7 +17,7 @@ Evmenu. Log in as superuser (#1), then run - batchcommand tutorials.tutorial_world.build + batchcommand contrib.tutorials.tutorial_world.build Wait a little while for building to complete and don't run the command again even if it's slow. This builds the world and connect it to Limbo