Removed strange echo of all players (including yourself) in the tutorial's hanging bridge room.

This commit is contained in:
Griatch 2012-03-13 22:15:03 +01:00
parent aae67225a4
commit abb5384dd1

View file

@ -425,6 +425,7 @@ class CmdEast(Command):
caller.msg("No east exit was found for this room. Contact an admin.") caller.msg("No east exit was found for this room. Contact an admin.")
return return
caller.db.tutorial_bridge_position = bridge_step caller.db.tutorial_bridge_position = bridge_step
caller.location.msg_contents("%s steps eastwards across the bridge." % caller.name, exclude=caller)
caller.execute_cmd("look") caller.execute_cmd("look")
# go back across the bridge # go back across the bridge
@ -452,6 +453,7 @@ class CmdWest(Command):
caller.msg("No west exit was found for this room. Contact an admin.") caller.msg("No west exit was found for this room. Contact an admin.")
return return
caller.db.tutorial_bridge_position = bridge_step caller.db.tutorial_bridge_position = bridge_step
caller.location.msg_contents("%s steps westwartswards across the bridge." % caller.name, exclude=caller)
caller.execute_cmd("look") caller.execute_cmd("look")
class CmdLookBridge(Command): class CmdLookBridge(Command):
@ -483,8 +485,9 @@ class CmdLookBridge(Command):
"Under your feet a plank comes loose, tumbling down. For a moment you dangle over the abyss ...", "Under your feet a plank comes loose, tumbling down. For a moment you dangle over the abyss ...",
"The section of rope you hold onto crumble in your hands, parts of it breaking apart. You sway trying to regain balance.") "The section of rope you hold onto crumble in your hands, parts of it breaking apart. You sway trying to regain balance.")
message = "{c%s{n\n" % self.obj.key + messages[bridge_position] + "\n" + moods[random.randint(0, len(moods) - 1)] message = "{c%s{n\n" % self.obj.key + messages[bridge_position] + "\n" + moods[random.randint(0, len(moods) - 1)]
chars = [obj for obj in self.obj.contents if obj.has_player] chars = [obj for obj in self.obj.contents if obj != self.caller and obj.has_player]
message += "\n You see: %s" % ", ".join("{c%s{n" % char.key for char in chars) if chars:
message += "\n You see: %s" % ", ".join("{c%s{n" % char.key for char in chars)
self.caller.msg(message) self.caller.msg(message)