More 515 Compatibility

This commit is contained in:
Heroman3003
2023-06-05 21:21:35 +00:00
committed by CHOMPStation2
parent 3129a35fe2
commit 2281afdf24
142 changed files with 507 additions and 414 deletions
+2 -2
View File
@@ -102,13 +102,13 @@
START_PROCESSING(SSobj, src)
if(always_on)
create_shields()
GLOB.moved_event.register(src, src, .proc/moved_event)
GLOB.moved_event.register(src, src, PROC_REF(moved_event))
return ..()
/obj/item/shield_projector/Destroy()
destroy_shields()
STOP_PROCESSING(SSobj, src)
GLOB.moved_event.unregister(src, src, .proc/moved_event)
GLOB.moved_event.unregister(src, src, PROC_REF(moved_event))
return ..()
/obj/item/shield_projector/proc/moved_event()
+1 -1
View File
@@ -147,7 +147,7 @@
continue
// Note: Range is a non-exact aproximation of the spread effect. If it doesn't look good
// we'll need to switch to actually walking along the shields to get exact number of steps away.
addtimer(CALLBACK(S, .proc/impact_flash), get_dist(src, S) * 2)
addtimer(CALLBACK(S, PROC_REF(impact_flash)), get_dist(src, S) * 2)
impact_flash()
// Small visual effect, makes the shield tiles brighten up by becoming more opaque for a moment