Merge pull request #3633 from count-infinity/3617-Default-object-descriptions

Allow simple customization of default object descriptions
This commit is contained in:
Griatch 2024-12-15 15:32:26 +01:00 committed by GitHub
commit 0004dc5f7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 57 additions and 19 deletions

View file

@ -705,6 +705,7 @@ class CmdCreate(ObjManipCommand):
)
if errors:
self.msg(errors)
if not obj:
continue
@ -714,9 +715,7 @@ class CmdCreate(ObjManipCommand):
)
else:
string = f"You create a new {obj.typename}: {obj.name}."
# set a default desc
if not obj.db.desc:
obj.db.desc = "You see nothing special."
if "drop" in self.switches:
if caller.location:
obj.home = caller.location