Made @create not overwrite a script-defined 'desc' attribute if it exists. Resolves issue109.

This commit is contained in:
Griatch 2010-09-12 15:14:09 +00:00
parent 8bedd4d793
commit 5361bd03d3

View file

@ -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)