mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Resync files from wiki
This commit is contained in:
parent
b1dd8a38a3
commit
1e56967a7c
13 changed files with 223 additions and 72 deletions
|
|
@ -149,10 +149,11 @@ In the future you can add any number of commands to this cmdset, to expand your
|
|||
We will create a simple Room typeclass to act as a template for all our Chargen areas. Edit `mygame/typeclasses/rooms.py` next:
|
||||
|
||||
```python
|
||||
# end of rooms.py
|
||||
|
||||
from commands.default_cmdsets import ChargenCmdset
|
||||
|
||||
# ...
|
||||
# down at the end of rooms.py
|
||||
|
||||
class ChargenRoom(Room):
|
||||
"""
|
||||
This room class is used by character-generation rooms. It makes
|
||||
|
|
@ -200,6 +201,8 @@ Go back to `mygame/commands/command.py` and add the command to the end like this
|
|||
```python
|
||||
import random
|
||||
|
||||
# ...
|
||||
|
||||
class CmdAttack(Command):
|
||||
"""
|
||||
issues an attack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue