Made @create not overwrite a script-defined 'desc' attribute if it exists. Resolves issue109.
This commit is contained in:
parent
8bedd4d793
commit
5361bd03d3
1 changed files with 2 additions and 1 deletions
|
|
@ -609,7 +609,8 @@ class CmdCreate(ObjManipCommand):
|
|||
string = "You create a new %s: %s."
|
||||
string = string % (obj.typeclass, obj.name)
|
||||
# set a default desc
|
||||
obj.db.desc = "You see nothing special."
|
||||
if not obj.db.desc:
|
||||
obj.db.desc = "You see nothing special."
|
||||
if 'drop' in self.switches:
|
||||
if caller.location:
|
||||
obj.move_to(caller.location, quiet=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue