From faa2b61e8935e5a03633aeee1326c6f3cc3095e3 Mon Sep 17 00:00:00 2001 From: Kenneth Aalberg Date: Wed, 21 Dec 2022 20:57:54 +0100 Subject: [PATCH 1/6] Update README.md for contrib.base_systems.components: * Fix a missing base_systems submodule in documentation. --- evennia/contrib/base_systems/components/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/contrib/base_systems/components/README.md b/evennia/contrib/base_systems/components/README.md index 8f30b03630..7446419617 100644 --- a/evennia/contrib/base_systems/components/README.md +++ b/evennia/contrib/base_systems/components/README.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" From 7c7969e3ee56c82c5c848506eaa7445bdcc6a600 Mon Sep 17 00:00:00 2001 From: Kenneth Aalberg Date: Wed, 21 Dec 2022 21:02:24 +0100 Subject: [PATCH 2/6] Update README.md for contrib.game_systems.crafting: * Update submodule paths in documentation. contrib.crafting.crafting -> contrib.game_systems.crafting --- evennia/contrib/game_systems/crafting/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/evennia/contrib/game_systems/crafting/README.md b/evennia/contrib/game_systems/crafting/README.md index 7c5232dd95..bd1333c450 100644 --- a/evennia/contrib/game_systems/crafting/README.md +++ b/evennia/contrib/game_systems/crafting/README.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""" From d059e3816d6dd4860c6d91f906eb1cbe64cd1507 Mon Sep 17 00:00:00 2001 From: Kenneth Aalberg Date: Wed, 21 Dec 2022 21:04:21 +0100 Subject: [PATCH 3/6] Update README.md for contrib.grid.ingame_map_display: * Correct Character_CmdSet to CharacterCmdSet. --- evennia/contrib/grid/ingame_map_display/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/contrib/grid/ingame_map_display/README.md b/evennia/contrib/grid/ingame_map_display/README.md index 3e52089cfd..54c4db6e32 100644 --- a/evennia/contrib/grid/ingame_map_display/README.md +++ b/evennia/contrib/grid/ingame_map_display/README.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): ... From 4d5badbaef9ed5091a376ca2142bf886956599bc Mon Sep 17 00:00:00 2001 From: Kenneth Aalberg Date: Wed, 21 Dec 2022 21:09:17 +0100 Subject: [PATCH 4/6] Update README.md for contrib.rpg.rpsystem: * Fix submodule path. --- evennia/contrib/rpg/rpsystem/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/contrib/rpg/rpsystem/README.md b/evennia/contrib/rpg/rpsystem/README.md index b69f4e7b8f..006a310003 100644 --- a/evennia/contrib/rpg/rpsystem/README.md +++ b/evennia/contrib/rpg/rpsystem/README.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() From 3165d865964e13e47ff75b3d5a76199263b81ff8 Mon Sep 17 00:00:00 2001 From: Kenneth Aalberg Date: Wed, 21 Dec 2022 21:11:02 +0100 Subject: [PATCH 5/6] Update README.md for contrib.tutorials.red_button: * Fix submodule path. --- evennia/contrib/tutorials/red_button/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/contrib/tutorials/red_button/README.md b/evennia/contrib/tutorials/red_button/README.md index 5d7e94dfe4..0da213ff4a 100644 --- a/evennia/contrib/tutorials/red_button/README.md +++ b/evennia/contrib/tutorials/red_button/README.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. From 72e37b312fb92bf408d0874ba53251cc0199867e Mon Sep 17 00:00:00 2001 From: Kenneth Aalberg Date: Wed, 21 Dec 2022 21:11:42 +0100 Subject: [PATCH 6/6] Update README.md for contrib.tutorials.tutorial_world: * Fix submodule path. --- evennia/contrib/tutorials/tutorial_world/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/contrib/tutorials/tutorial_world/README.md b/evennia/contrib/tutorials/tutorial_world/README.md index b949c73855..756fb916c1 100644 --- a/evennia/contrib/tutorials/tutorial_world/README.md +++ b/evennia/contrib/tutorials/tutorial_world/README.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