From 0cee06bfbf940733227af9787bc377d538f62971 Mon Sep 17 00:00:00 2001 From: Kenneth Aalberg Date: Tue, 20 Dec 2022 19:12:58 +0100 Subject: [PATCH] Update README.md: * contrib has been moved to evennia.contrib.grid. * default_cmds.Character_CmdSet has been renamed to default_cmds.CharacterCmdSet * Clarify that order in relation to super() is important due to overriding look and desc. --- evennia/contrib/grid/extended_room/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/evennia/contrib/grid/extended_room/README.md b/evennia/contrib/grid/extended_room/README.md index e21e64d5c3..5fd6217f36 100644 --- a/evennia/contrib/grid/extended_room/README.md +++ b/evennia/contrib/grid/extended_room/README.md @@ -16,11 +16,12 @@ In more detail, in `mygame/commands/default_cmdsets.py`: ```python ... -from evennia.contrib import extended_room # <--- +from evennia.contrib.grid import extended_room # <--- -class CharacterCmdset(default_cmds.Character_CmdSet): +class CharacterCmdset(default_cmds.CharacterCmdSet): ... def at_cmdset_creation(self): + super().at_cmdset_creation() ... self.add(extended_room.ExtendedRoomCmdSet) # <--- @@ -28,7 +29,10 @@ class CharacterCmdset(default_cmds.Character_CmdSet): Then reload to make the new commands available. Note that they only work on rooms with the typeclass `ExtendedRoom`. Create new rooms with the right -typeclass or use the `typeclass` command to swap existing rooms. +typeclass or use the `typeclass` command to swap existing rooms. Note that since +this contrib overrides the `look` command, you will need to add the +`extended_room.ExtendedRoomCmdSet` to the default character cmdset *after* +super().at_cmdset_creation(), or it will be overridden by the default look. ## Features