Update links/paths to new contrib locations
This commit is contained in:
parent
7f2b8c81d7
commit
8139fd79c7
61 changed files with 171 additions and 248 deletions
0
evennia/contrib/full_systems/__init__.py
Normal file
0
evennia/contrib/full_systems/__init__.py
Normal file
|
|
@ -29,7 +29,7 @@ In `mygame/commands/default_cmdsets.py`:
|
|||
|
||||
```python
|
||||
|
||||
from evennia.contrib.evscaperoom.commands import CmdEvscapeRoomStart
|
||||
from evennia.contrib.full_systems.evscaperoom.commands import CmdEvscapeRoomStart
|
||||
|
||||
class CharacterCmdSet(...):
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ comes with a small (very small) escape room as an example.
|
|||
To do this, you need to make your own states. First make sure you can play the
|
||||
simple example room installed above.
|
||||
|
||||
Copy `evennia/contrib/evscaperoom/states` to somewhere in your game folder (let's
|
||||
Copy `evennia/contrib/full_systems/evscaperoom/states` to somewhere in your game folder (let's
|
||||
assume you put it under `mygame/world/`).
|
||||
|
||||
Next you need to re-point Evennia to look for states in this new location. Add
|
||||
|
|
@ -70,7 +70,7 @@ There are a few other settings that may be useful:
|
|||
want some other naming scheme.
|
||||
- `HELP_SUMMARY_TEXT` - this is the help blurb shown when entering `help` in
|
||||
the room without an argument. The original is found at the top of
|
||||
`evennia/contrib/evscaperoom/commands.py`.
|
||||
`evennia/contrib/full_systems/evscaperoom/commands.py`.
|
||||
|
||||
# Playing the game
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ from .utils import create_evscaperoom_object, msg_cinematic, parse_for_things
|
|||
if hasattr(settings, "EVSCAPEROOM_STATE_PACKAGE"):
|
||||
_ROOMSTATE_PACKAGE = settings.EVSCAPEROOM_STATE_PACKAGE
|
||||
else:
|
||||
_ROOMSTATE_PACKAGE = "evennia.contrib.evscaperoom.states"
|
||||
_ROOMSTATE_PACKAGE = "evennia.contrib.full_systems.evscaperoom.states"
|
||||
if hasattr(settings, "EVSCAPEROOM_START_STATE"):
|
||||
_FIRST_STATE = settings.EVSCAPEROOM_START_STATE
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ system but they don't necessarily need to follow each other in the exact
|
|||
sequence.
|
||||
|
||||
Each state module must make a class `State` available in the global scope. This
|
||||
should be a child of `evennia.contrib.evscaperoom.state.BaseState`. The
|
||||
should be a child of `evennia.contrib.full_systems/evscaperoom.state.BaseState`. The
|
||||
methods on this class will be called to initialize the state and clean up etc.
|
||||
There are no other restrictions on the module.
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ teleported back to the evscaperoom menu.
|
|||
|
||||
"""
|
||||
|
||||
from evennia.contrib.evscaperoom.state import BaseState
|
||||
from evennia.contrib.evscaperoom import objects
|
||||
from evennia.contrib.full_systems.evscaperoom.state import BaseState
|
||||
from evennia.contrib.full_systems.evscaperoom import objects
|
||||
|
||||
GREETING = """
|
||||
This is the situation, {name}:
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ class TestStates(EvenniaTest):
|
|||
dirname = path.join(path.dirname(__file__), "states")
|
||||
states = []
|
||||
for imp, module, ispackage in pkgutil.walk_packages(
|
||||
path=[dirname], prefix="evennia.contrib.evscaperoom.states."
|
||||
path=[dirname], prefix="evennia.contrib.full_systems.evscaperoom.states."
|
||||
):
|
||||
mod = mod_import(module)
|
||||
states.append(mod)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue