From 6e975236ebcab450cea392810c3d2f1fc4e2226d Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 22 Aug 2021 20:33:37 +0200 Subject: [PATCH] Direct-reference typeclass in xyzgrid example, for simplicity --- docs/source/Contribs/XYZGrid.md | 2 +- evennia/contrib/xyzgrid/example.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/Contribs/XYZGrid.md b/docs/source/Contribs/XYZGrid.md index 5b0c823d4d..f863a0b4fc 100644 --- a/docs/source/Contribs/XYZGrid.md +++ b/docs/source/Contribs/XYZGrid.md @@ -57,7 +57,7 @@ Exits: northeast and east available for use as prototype-parents when spawning the grid. 3. Run `evennia xyzgrid help` for available options. 4. (Optional): By default, the xyzgrid will only spawn module-based - [prototypes](Prototypes). This is an optimization and usually makes sense + [prototypes](../Components/Prototypes). This is an optimization and usually makes sense since the grid is entirely defined outside the game anyway. If you want to also make use of in-game (db-) created prototypes, add `XYZGRID_USE_DB_PROTOTYPES = True` to settings. diff --git a/evennia/contrib/xyzgrid/example.py b/evennia/contrib/xyzgrid/example.py index d9f357d7ab..bd2bc74502 100644 --- a/evennia/contrib/xyzgrid/example.py +++ b/evennia/contrib/xyzgrid/example.py @@ -29,15 +29,15 @@ from evennia.contrib.xyzgrid import xymap_legend ROOM_PARENT = { "key": "An empty room", "prototype_key": "xyz_exit_prototype", - "prototype_parent": "xyz_room", - # "typeclass": "evennia.contrib.xyzgrid.xyzroom.XYZRoom", + # "prototype_parent": "xyz_room", + "typeclass": "evennia.contrib.xyzgrid.xyzroom.XYZRoom", "desc": "An empty room.", } EXIT_PARENT = { "prototype_key": "xyz_exit_prototype", - "prototype_parent": "xyz_exit", - # "typeclass": "evennia.contrib.xyzgrid.xyzroom.XYZExit", + # "prototype_parent": "xyz_exit", + "typeclass": "evennia.contrib.xyzgrid.xyzroom.XYZExit", "desc": "A path to the next location.", }