Re-arrange line breaks for the examine command to match MUX/MUSH.
This commit is contained in:
parent
1d0b05c229
commit
acbfa1be6a
1 changed files with 7 additions and 8 deletions
|
|
@ -318,21 +318,20 @@ def cmd_examine(command):
|
||||||
# Render Contents display.
|
# Render Contents display.
|
||||||
if con_players or con_things:
|
if con_players or con_things:
|
||||||
s += str("%sContents:%s" % (ANSITable.ansi["hilite"],
|
s += str("%sContents:%s" % (ANSITable.ansi["hilite"],
|
||||||
ANSITable.ansi["normal"])) + newl
|
ANSITable.ansi["normal"]))
|
||||||
for player in con_players:
|
for player in con_players:
|
||||||
s += str(' %s' % player.get_name(fullname=True)) + newl
|
s += str(' %s' % newl + player.get_name(fullname=True))
|
||||||
for thing in con_things:
|
for thing in con_things:
|
||||||
s += str(' %s' % thing.get_name(fullname=True)) + newl
|
s += str(' %s' % newl + thing.get_name(fullname=True))
|
||||||
|
|
||||||
# Render Exists display.
|
# Render Exists display.
|
||||||
if con_exits:
|
if con_exits:
|
||||||
s += str("%sExits:%s" % (ANSITable.ansi["hilite"],
|
s += str("%sExits:%s" % (newl + ANSITable.ansi["hilite"],
|
||||||
ANSITable.ansi["normal"])) + newl
|
ANSITable.ansi["normal"]))
|
||||||
for exit in con_exits:
|
for exit in con_exits:
|
||||||
s += str(' %s' % exit.get_name(fullname=True)) + newl
|
s += str(' %s' % newl + exit.get_name(fullname=True))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Send it all
|
||||||
source_object.emit_to(s)
|
source_object.emit_to(s)
|
||||||
|
|
||||||
GLOBAL_CMD_TABLE.add_command("examine", cmd_examine)
|
GLOBAL_CMD_TABLE.add_command("examine", cmd_examine)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue