mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 00:06:30 +01:00
Work on cleaning up docs
This commit is contained in:
parent
d45ef9c396
commit
45edb7ae33
17 changed files with 218 additions and 456 deletions
|
|
@ -1203,9 +1203,12 @@ Our turnbased combat system is complete!
|
|||
|
||||
## Testing
|
||||
|
||||
```{sidebar}
|
||||
See [evennia/contrib/tutorials/evadventure/tests/test_combat.py](evennia.contrib.tutorials.evadventure.tests.test_combat)
|
||||
```
|
||||
Unit testing of the Turnbased combat handler is straight forward, you follow the process of earlier lessons to test that each method on the handler returns what you expect with mocked inputs.
|
||||
|
||||
Unit-testing the menu is more complex. You will find examples of doing this in [evennia.utils.tests.test_evmenu](evennia.utils.tests.test_evmenu).
|
||||
Unit-testing the menu is more complex. You will find examples of doing this in [evennia.utils.tests.test_evmenu](github:main/evennia/utils/testss/test_evmenu.py).
|
||||
|
||||
## A small combat test
|
||||
|
||||
|
|
@ -1219,7 +1222,7 @@ Unit testing the code is not enough to see that combat works. We need to also ma
|
|||
- An item (like a potion) we can `use`.
|
||||
|
||||
```{sidebar}
|
||||
You can find an example batch-code script in [evennia/contrib/tutorials/evadventure/batchscripts/turnbased_combat_demo.ev](evennia.contrib.tutorials.evadventure.batchscripts)
|
||||
You can find an example batch-code script in [evennia/contrib/tutorials/evadventure/batchscripts/turnbased_combat_demo.py](github:evennia/contrib/tutorials/evadventure/batchscripts/turnbased_combat_demo.py)
|
||||
```
|
||||
|
||||
In [The Twitch combat lesson](./Beginner-Tutorial-Combat-Twitch.md) we used a [batch-command script](../../../Components/Batch-Command-Processor.md) to create the testing environment in game. This runs in-game Evennia commands in sequence. For demonstration purposes we'll instead use a [batch-code script](../../../Components/Batch-Code-Processor.md), which runs raw Python code in a repeatable way. A batch-code script is much more flexible than a batch-command script.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue