From 7f36da695a7be7f9e9937f8657a2b0744fd2accc Mon Sep 17 00:00:00 2001 From: iLPdev Date: Sat, 28 Oct 2023 07:17:39 -0700 Subject: [PATCH] docs(Sittable-Object): :memo: emphasize and list all uses of `adjective` --- .../Part1/Beginner-Tutorial-Making-A-Sittable-Object.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 03c048eb44..83ed5687b4 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 @@ -138,7 +138,7 @@ We _could_ make a child class of `Sittable` named `SittableIn` that makes this c ```{code-block} python :linenos: -:emphasize-lines: 15,22,43 +:emphasize-lines: 15,19,22,27,39,43 # in mygame/typeclasses/sittables.py @@ -186,7 +186,7 @@ class Sittable(DefaultObject): ``` - **Line 15**: We grab the `adjective` Attribute. Using `self.db.adjective or "on"` here means that if the Attribute is not set (is `None`/falsy) the default "on" string will be assumed. -- **Lines 22 and 43**: We use this adjective to modify the return text we see. +- **Lines 19,22,27,39, and 43**: We use this adjective to modify the return text we see. `reload` the server. An advantage of using Attributes like this is that they can be modified on the fly, in-game. Let's look at a builder could use this by normal building commands (no need for `py`):