Merge pull request #3633 from count-infinity/3617-Default-object-descriptions
Allow simple customization of default object descriptions
This commit is contained in:
commit
0004dc5f7c
4 changed files with 57 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue