Merge branch 'patch-27' of https://github.com/homeofpoe/evennia into homeofpoe-patch-27
This commit is contained in:
commit
ce0e5a3aca
1 changed files with 2 additions and 5 deletions
|
|
@ -238,7 +238,7 @@ Tweak this file as follows:
|
||||||
```python
|
```python
|
||||||
# in mygame/commands/default_cmdsets.py
|
# in mygame/commands/default_cmdsets.py
|
||||||
|
|
||||||
# ,..
|
# ...
|
||||||
|
|
||||||
from . import mycommands # <-------
|
from . import mycommands # <-------
|
||||||
|
|
||||||
|
|
@ -299,9 +299,6 @@ Still in `mygame/commands/mycommands.py`, add a new class, between `CmdEcho` and
|
||||||
```{code-block} python
|
```{code-block} python
|
||||||
# in mygame/commands/mycommands.py
|
# in mygame/commands/mycommands.py
|
||||||
|
|
||||||
:linenos:
|
|
||||||
:emphasize-lines: 3,4,11,14,15,17,18,19,21
|
|
||||||
|
|
||||||
# ...
|
# ...
|
||||||
|
|
||||||
class CmdHit(Command):
|
class CmdHit(Command):
|
||||||
|
|
@ -439,4 +436,4 @@ You won't see the second string. Only Smaug sees that (and is not amused).
|
||||||
In this lesson we learned how to create our own Command, add it to a CmdSet and then to ourselves. We also upset a dragon.
|
In this lesson we learned how to create our own Command, add it to a CmdSet and then to ourselves. We also upset a dragon.
|
||||||
|
|
||||||
In the next lesson we'll learn how to hit Smaug with different weapons. We'll also
|
In the next lesson we'll learn how to hit Smaug with different weapons. We'll also
|
||||||
get into how we replace and extend Evennia's default Commands.
|
get into how we replace and extend Evennia's default Commands.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue