From 7084f7a02164f8824f4e00713bc60e7915810cf2 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 14 Jan 2024 17:03:09 +0100 Subject: [PATCH] Fix py example in sittable object tutorial. Resolve #3401 --- CHANGELOG.md | 4 ++++ .../Part1/Beginner-Tutorial-Making-A-Sittable-Object.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8cf612c65..68754e93a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## main branch + +- Doc tutorial fixes + ## Evennia 3.1.0 Jan 8, 2024 diff --git a/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Making-A-Sittable-Object.md b/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Making-A-Sittable-Object.md index bbd0c48272..744150bdf6 100644 --- a/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Making-A-Sittable-Object.md +++ b/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Making-A-Sittable-Object.md @@ -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. ```