Allow customizations of default descriptions

This commit is contained in:
Count Infinity 2024-10-05 00:47:07 -06:00
parent d76bc1a62b
commit effe4c4a0a
2 changed files with 27 additions and 17 deletions

View file

@ -693,6 +693,7 @@ class CmdCreate(ObjManipCommand):
)
if errors:
self.msg(errors)
if not obj:
continue
@ -702,9 +703,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