Merge pull request #3304 from iLPdev/patch-3

docs(Sittable-Object): 📝 add terminal punctuation to do_stand code
This commit is contained in:
Griatch 2023-10-29 07:37:49 +01:00 committed by GitHub
commit 3fa13815c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ Let's continue:
else:
self.db.sitter = None
del stander.db.is_sitting
stander.msg(f"You stand up from {self.key}")
stander.msg(f"You stand up from {self.key}.")
```
This is the inverse of sitting down; we need to do some cleanup.
@ -182,7 +182,7 @@ class Sittable(DefaultObject):
else:
self.db.sitter = None
del stander.db.is_sitting
stander.msg(f"You stand up from {self.key}")
stander.msg(f"You stand up from {self.key}.")
```
- **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.