From abb5384dd1ad7cfe3766ad9e07aa601cb0e7078d Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 13 Mar 2012 22:15:03 +0100 Subject: [PATCH] Removed strange echo of all players (including yourself) in the tutorial's hanging bridge room. --- contrib/tutorial_world/rooms.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/tutorial_world/rooms.py b/contrib/tutorial_world/rooms.py index 8d462c9c97..048e578093 100644 --- a/contrib/tutorial_world/rooms.py +++ b/contrib/tutorial_world/rooms.py @@ -425,6 +425,7 @@ class CmdEast(Command): caller.msg("No east exit was found for this room. Contact an admin.") return 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") # 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.") return 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") 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 ...", "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)] - chars = [obj for obj in self.obj.contents if obj.has_player] - message += "\n You see: %s" % ", ".join("{c%s{n" % char.key for char in chars) + chars = [obj for obj in self.obj.contents if obj != self.caller and obj.has_player] + if chars: + message += "\n You see: %s" % ", ".join("{c%s{n" % char.key for char in chars) self.caller.msg(message)