mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Changed create_object to have at_object_receive and at_after_move to correctly target the location and not the new object. Resolves #566.
This commit is contained in:
parent
079e98884f
commit
3dc35d8b6d
3 changed files with 4 additions and 4 deletions
|
|
@ -675,4 +675,4 @@ class CmdEditor(Command):
|
|||
loadfunc=load_attr,
|
||||
savefunc=save_attr,
|
||||
quitfunc=quit_hook,
|
||||
key=editor_key)
|
||||
key=editor_key)
|
||||
|
|
|
|||
|
|
@ -729,7 +729,7 @@ class Object(TypeClass):
|
|||
Called after move has completed, regardless of quiet mode or not.
|
||||
Allows changes to the object due to the location it is now in.
|
||||
|
||||
source_location - where we came from
|
||||
source_location - where we came from. This may be None.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -195,8 +195,8 @@ def create_object(typeclass=None, key=None, location=None,
|
|||
|
||||
# trigger relevant move_to hooks in order to display messages.
|
||||
if location:
|
||||
new_object.at_object_receive(new_object, None)
|
||||
new_object.at_after_move(new_object)
|
||||
location.at_object_receive(new_object, None)
|
||||
new_object.at_after_move(None)
|
||||
|
||||
# post-hook setup (mainly used by Exits)
|
||||
new_object.basetype_posthook_setup()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue