X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=doc%2Fsource%2Fcoder.rst;h=a14893648a957330ba49265f290a73553aac2777;hb=24687ba4e94bcf43bcee1d196c6944303a4402c1;hp=0e5bcae390dfef875b98d06de0646ec8f71abdf5;hpb=0f8e071859e2325f62bd19d989ab5ac3aa8a075d;p=mudpy.git diff --git a/doc/source/coder.rst b/doc/source/coder.rst index 0e5bcae..a148936 100644 --- a/doc/source/coder.rst +++ b/doc/source/coder.rst @@ -2,7 +2,7 @@ coder guide ============= -.. Copyright (c) 2004-2020 mudpy authors. Permission to use, copy, +.. Copyright (c) 2004-2021 mudpy authors. Permission to use, copy, modify, and distribute this software is granted under terms provided in the LICENSE file distributed with this software. @@ -44,11 +44,9 @@ Basic developer requirements are a POSIX Unix derivative (such as Linux), a modern Python 3 interpreter (any of the minor revisions mentioned in the ``metadata.classifier`` section of :file:`setup.cfg`) and a recent release of the tox_ utility (at least -the ``tox.minversion`` mentioned in :file:`tox.ini`). The tox-venv_ -plug-in for tox is also recommended. +the ``tox.minversion`` mentioned in :file:`tox.ini`). .. _tox: https://tox.readthedocs.io/ -.. _tox-venv: https://pypi.org/project/tox-venv/ application program interface ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -103,13 +101,13 @@ be fairly similar across most GNU/Linux distributions. For example, on Debian 10 (a.k.a. *Buster*) you need to expressly install the ``pip`` and ``venv`` modules since they're packaged separately from the rest of the Python standard library. Once that's done, you can -perform local installs of ``tox`` and ``tox-venv`` as a normal -non-root user. We're also going to install system packages for the -``git`` revision control toolset and an extensible console-based MUD -client called ``tf5`` (TinyFugue version 5):: +perform a local install of ``tox`` as a normal non-root user. We're +also going to install system packages for the ``git`` revision +control toolset and an extensible console-based MUD client called +``tf5`` (TinyFugue version 5):: sudo apt install git python3-pip python3-venv tf5 - pip install --user tox tox-venv + pip install --user tox exit The reason for exiting is that, if this is the first time you've @@ -125,7 +123,7 @@ cloned it:: Now you should be able to invoke any tox testenv you like. Just running :command:`tox` without any additional options will go -through the defalt battery of checks and is a good way to make sure +through the default battery of checks and is a good way to make sure everything is installed and working. Once you're ready to try out the server interactively, launch it like this:: @@ -208,7 +206,7 @@ how I'd go about implementing it: skill, spell, item, or however finding that information would best fit into your setting). This is stored in the element's :code:`.key` attribute, and you can play around with it on the - command line with :command:`show result` like this:: + command line with :command:`evaluate` like this:: > look Center Sample Location @@ -218,7 +216,7 @@ how I'd go about implementing it: A sample prop sits here. Utso is here. - > show result [ + > evaluate [ a.key.split('_', 1)[1] for a in actor.universe.contents[ actor.get('location')