Changed the examine command to add #dbref information to exits, characters and contents. Resolves #567.

This commit is contained in:
Griatch 2014-09-20 10:46:03 +02:00
parent 062a545a97
commit 7aa3a5b8ae

View file

@ -1765,11 +1765,11 @@ class CmdExamine(ObjManipCommand):
else:
things.append(content)
if exits:
string += "\n{wExits{n: %s" % ", ".join([exit.name for exit in exits])
string += "\n{wExits{n: %s" % ", ".join(["%s(%s)" % (exit.name, exit.dbref) for exit in exits])
if pobjs:
string += "\n{wCharacters{n: %s" % ", ".join(["{c%s{n" % pobj.name for pobj in pobjs])
string += "\n{wCharacters{n: %s" % ", ".join(["{c%s{n(%s)" % (pobj.name, pobj.dbref) for pobj in pobjs])
if things:
string += "\n{wContents{n: %s" % ", ".join([cont.name for cont in obj.contents
string += "\n{wContents{n: %s" % ", ".join(["%s(%s)" % (cont.name, cont.dbref) for cont in obj.contents
if cont not in exits and cont not in pobjs])
separator = "-" * 78
#output info