docs(Sittable-Object): 📝 add terminal punctuation to do_stand code

This commit is contained in:
iLPdev 2023-10-27 11:21:02 -07:00 committed by GitHub
parent 78221f8ac3
commit 2bd7117fbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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