Added move_type to obj.move_to and its many hooks and what calls it.
This commit is contained in:
parent
ae21036a34
commit
c99cd45f93
10 changed files with 48 additions and 37 deletions
|
|
@ -82,7 +82,7 @@ class SlowExit(DefaultExit):
|
|||
def move_callback():
|
||||
"This callback will be called by utils.delay after move_delay seconds."
|
||||
source_location = traversing_object.location
|
||||
if traversing_object.move_to(target_location):
|
||||
if traversing_object.move_to(target_location, move_type="traverse"):
|
||||
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