Fix so as to not send traverse messages to the traverser. Fixes unittests.
This commit is contained in:
parent
34f1d84c4c
commit
72d4bb4de7
1 changed files with 8 additions and 6 deletions
|
|
@ -1139,9 +1139,10 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
||||||
string = "%s is leaving %s, heading for %s."
|
string = "%s is leaving %s, heading for %s."
|
||||||
location = self.location
|
location = self.location
|
||||||
for obj in self.location.contents:
|
for obj in self.location.contents:
|
||||||
obj.msg(string % (self.get_display_name(obj),
|
if obj != self:
|
||||||
location.get_display_name(obj) if location else "nowhere",
|
obj.msg(string % (self.get_display_name(obj),
|
||||||
destination.get_display_name(obj)))
|
location.get_display_name(obj) if location else "nowhere",
|
||||||
|
destination.get_display_name(obj)))
|
||||||
|
|
||||||
def announce_move_to(self, source_location):
|
def announce_move_to(self, source_location):
|
||||||
"""
|
"""
|
||||||
|
|
@ -1163,9 +1164,10 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
||||||
string = "%s arrives to %s from %s."
|
string = "%s arrives to %s from %s."
|
||||||
location = self.location
|
location = self.location
|
||||||
for obj in self.location.contents:
|
for obj in self.location.contents:
|
||||||
obj.msg(string % (self.get_display_name(obj),
|
if obj != self:
|
||||||
location.get_display_name(obj) if location else "nowhere",
|
obj.msg(string % (self.get_display_name(obj),
|
||||||
source_location.get_display_name(obj)))
|
location.get_display_name(obj) if location else "nowhere",
|
||||||
|
source_location.get_display_name(obj)))
|
||||||
|
|
||||||
def at_after_move(self, source_location):
|
def at_after_move(self, source_location):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue