mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fix py example in sittable object tutorial. Resolve #3401
This commit is contained in:
parent
7eea74b614
commit
7084f7a021
2 changed files with 6 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## main branch
|
||||
|
||||
- Doc tutorial fixes
|
||||
|
||||
## Evennia 3.1.0
|
||||
|
||||
Jan 8, 2024
|
||||
|
|
|
|||
|
|
@ -127,8 +127,8 @@ We let the typeclass handle the logic, and also let it do all the return messagi
|
|||
It's fine to sit 'on' a chair. But what if our Sittable is an armchair?
|
||||
|
||||
```
|
||||
> py armchair = evennia.create_object("typeclasses.sittables.Sittable", key="armchair", location=here)
|
||||
> py armchair.do_sit(me)
|
||||
> py evennia.create_object("typeclasses.sittables.Sittable", key="armchair", location=here)
|
||||
> py self.search("armchair").do_sit(me)
|
||||
You sit on armchair.
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue