mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
Fixes events. (#15665)
This commit is contained in:
@@ -118,9 +118,9 @@
|
||||
if(source in sources)
|
||||
return FALSE
|
||||
sources += source
|
||||
moved_event.register(source, src, /datum/visualnet/proc/source_moved)
|
||||
destroyed_event.register(source, src, /datum/visualnet/proc/remove_source)
|
||||
for_all_chunks_in_range(source, /datum/chunk/proc/add_source, list(source))
|
||||
moved_event.register(source, src, PROC_REF(source_moved))
|
||||
destroyed_event.register(source, src, PROC_REF(remove_source))
|
||||
for_all_chunks_in_range(source, TYPE_PROC_REF(/datum/chunk, add_source), list(source))
|
||||
if(update_visibility)
|
||||
update_visibility(source, opacity_check)
|
||||
return TRUE
|
||||
|
||||
@@ -426,8 +426,8 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
|
||||
stop_following()
|
||||
following = target
|
||||
moved_event.register(following, src, /atom/movable/proc/move_to_destination)
|
||||
destroyed_event.register(following, src, /mob/abstract/observer/proc/stop_following)
|
||||
moved_event.register(following, src, TYPE_PROC_REF(/atom/movable, move_to_destination))
|
||||
destroyed_event.register(following, src, PROC_REF(stop_following))
|
||||
|
||||
to_chat(src, SPAN_NOTICE("Now following \the <b>[following]</b>."))
|
||||
move_to_destination(following, following.loc, following.loc)
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
parent.forceMove(src)
|
||||
|
||||
/mob/living/simple_animal/hostile/mech/setup_target_type_validators()
|
||||
target_type_validator_map[/mob/living/simple_animal/hostile/mech] = CALLBACK(src, .proc/validator_rival)
|
||||
target_type_validator_map[/mob/living/simple_animal/hostile/mech] = CALLBACK(src, PROC_REF(validator_rival))
|
||||
|
||||
/mob/living/simple_animal/hostile/mech/proc/validator_rival(var/mob/living/rival, var/atom/current)
|
||||
if(!seeking_targets)
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
/mob/living/simple_animal/hostile/mech/hear_say(var/message, var/verb = "says", var/datum/language/language = null, var/alt_name = "", var/italics = 0, var/mob/speaker = null, var/sound/speech_sound, var/sound_vol)
|
||||
if(!seeking_targets)
|
||||
addtimer(CALLBACK(src, .proc/handle_hear_say, speaker, message), 0.5 SECONDS)
|
||||
addtimer(CALLBACK(src, PROC_REF(handle_hear_say), speaker, message), 0.5 SECONDS)
|
||||
return ..()
|
||||
|
||||
/mob/living/simple_animal/hostile/mech/proc/handle_hear_say(var/mob/speaker, var/text)
|
||||
|
||||
@@ -419,7 +419,7 @@
|
||||
affecting.buckled_to = null
|
||||
affecting.update_canmove()
|
||||
affecting.anchored = FALSE
|
||||
moved_event.unregister(assailant, src, /obj/item/grab/proc/move_affecting)
|
||||
moved_event.unregister(assailant, src, PROC_REF(move_affecting))
|
||||
|
||||
animate(affecting, pixel_x = affecting.get_standard_pixel_x(), pixel_y = affecting.get_standard_pixel_y(), 4, 1, LINEAR_EASING)
|
||||
affecting.layer = initial(affecting.layer)
|
||||
@@ -476,7 +476,7 @@
|
||||
affecting.buckled_to = assailant
|
||||
affecting.forceMove(H.loc)
|
||||
adjust_position()
|
||||
moved_event.register(assailant, src, /obj/item/grab/proc/move_affecting)
|
||||
moved_event.register(assailant, src, PROC_REF(move_affecting))
|
||||
|
||||
/obj/item/grab/proc/set_wielding()
|
||||
wielded = TRUE
|
||||
|
||||
Reference in New Issue
Block a user