Fixes events. (#15665)

This commit is contained in:
Matt Atlas
2023-01-27 17:49:28 +01:00
committed by GitHub
parent 9155f54276
commit 06b2707463
30 changed files with 117 additions and 67 deletions
+2 -2
View File
@@ -19,8 +19,8 @@
reflection.setup_visuals(src)
ref = WEAKREF(reflection)
entered_event.register(loc, reflection, /obj/effect/reflection/proc/check_vampire_enter)
exited_event.register(loc, reflection, /obj/effect/reflection/proc/check_vampire_exit)
entered_event.register(loc, reflection, TYPE_PROC_REF(/obj/effect/reflection, check_vampire_enter))
exited_event.register(loc, reflection, TYPE_PROC_REF(/obj/effect/reflection, check_vampire_exit))
/obj/structure/mirror/Destroy()
var/obj/effect/reflection/reflection = ref.resolve()
+2 -2
View File
@@ -43,8 +43,8 @@
T.pixel_x = 0
T.pixel_y = 0
T.layer = ABOVE_OBJ_LAYER
moved_event.register(T, src, /atom/movable/proc/move_to_turf)
moved_event.register(src, T, /atom/movable/proc/move_to_turf)
moved_event.register(T, src, TYPE_PROC_REF(/atom/movable, move_to_turf))
moved_event.register(src, T, TYPE_PROC_REF(/atom/movable, move_to_turf))
T.stake = src
pinned_target = T
else