Merge branch 'from-obj' of https://github.com/fariparedes/evennia into fariparedes-from-obj

This commit is contained in:
Griatch 2021-04-06 21:11:31 +02:00
commit 80f5a6c085

View file

@ -628,7 +628,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
logger.log_trace() logger.log_trace()
kwargs["options"] = options kwargs["options"] = options
try: try:
if not self.at_msg_receive(text=text, **kwargs): if not self.at_msg_receive(text=text, from_obj=from_obj, **kwargs):
# if at_msg_receive returns false, we abort message to this object # if at_msg_receive returns false, we abort message to this object
return return
except Exception: except Exception:
@ -1443,7 +1443,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
} }
) )
location.msg_contents(string, exclude=(self,), mapping=mapping) location.msg_contents(string, exclude=(self,), from_obj=self, mapping=mapping)
def announce_move_to(self, source_location, msg=None, mapping=None, **kwargs): def announce_move_to(self, source_location, msg=None, mapping=None, **kwargs):
""" """
@ -1505,7 +1505,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
} }
) )
destination.msg_contents(string, exclude=(self,), mapping=mapping) destination.msg_contents(string, exclude=(self,), from_obj=self, mapping=mapping)
def at_after_move(self, source_location, **kwargs): def at_after_move(self, source_location, **kwargs):
""" """