mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
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."
|
||||
location = self.location
|
||||
for obj in self.location.contents:
|
||||
obj.msg(string % (self.get_display_name(obj),
|
||||
location.get_display_name(obj) if location else "nowhere",
|
||||
destination.get_display_name(obj)))
|
||||
if obj != self:
|
||||
obj.msg(string % (self.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):
|
||||
"""
|
||||
|
|
@ -1163,9 +1164,10 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
|
|||
string = "%s arrives to %s from %s."
|
||||
location = self.location
|
||||
for obj in self.location.contents:
|
||||
obj.msg(string % (self.get_display_name(obj),
|
||||
location.get_display_name(obj) if location else "nowhere",
|
||||
source_location.get_display_name(obj)))
|
||||
if obj != self:
|
||||
obj.msg(string % (self.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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue