mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 16:19:36 +01:00
More 515 Compatibility
This commit is contained in:
committed by
CHOMPStation2
parent
3129a35fe2
commit
2281afdf24
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user