From 5361bd03d39108c1ed60670ed705c01fb65f2841 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 12 Sep 2010 15:14:09 +0000 Subject: [PATCH] Made @create not overwrite a script-defined 'desc' attribute if it exists. Resolves issue109. --- game/gamesrc/commands/default/objmanip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/gamesrc/commands/default/objmanip.py b/game/gamesrc/commands/default/objmanip.py index 5f9c56def..62c103989 100644 --- a/game/gamesrc/commands/default/objmanip.py +++ b/game/gamesrc/commands/default/objmanip.py @@ -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)