mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
object.at_traverse() now passes the exit being traversed as a kwarg
This commit is contained in:
parent
99d300799e
commit
8b696ed2b5
1 changed files with 2 additions and 1 deletions
|
|
@ -866,6 +866,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
|
||||
Keyword Args:
|
||||
Passed on to announce_move_to and announce_move_from hooks.
|
||||
Exits will set the "exit" kwarg to themselves.
|
||||
|
||||
Returns:
|
||||
result (bool): True/False depending on if there were problems with the move.
|
||||
|
|
@ -2889,7 +2890,7 @@ class DefaultExit(DefaultObject):
|
|||
|
||||
"""
|
||||
source_location = traversing_object.location
|
||||
if traversing_object.move_to(target_location, move_type="traverse"):
|
||||
if traversing_object.move_to(target_location, move_type="traverse", exit=self):
|
||||
self.at_post_traverse(traversing_object, source_location)
|
||||
else:
|
||||
if self.db.err_traverse:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue