effect cleanup (#7502)

yeah, also updates emissive blockers
This commit is contained in:
Letter N
2026-01-27 12:44:16 -05:00
committed by GitHub
parent fcdae04ae0
commit d50ea14baa
26 changed files with 622 additions and 324 deletions
@@ -4,8 +4,6 @@
icon_state = "arrow"
plane = POINT_PLANE
duration = (2.5 SECONDS)
anchored = TRUE
mouse_opacity = 0
/obj/effect/temp_visual/point/Initialize(mapload, set_invis = 0)
. = ..()
@@ -5,10 +5,9 @@
icon_state = "nothing"
layer = ABOVE_MOB_LAYER
anchored = TRUE
mouse_opacity = 0
appearance_flags = 0
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
/obj/effect/projectile/singularity_pull()
/obj/effect/projectile/singularity_pull(atom/singularity, current_size)
return
/obj/effect/projectile/singularity_act()
@@ -1,19 +1,22 @@
//temporary visual effects
/obj/effect/temp_visual
icon = 'icons/effects/effects.dmi'
icon_state = "nothing"
anchored = TRUE
layer = ABOVE_MOB_LAYER
mouse_opacity = 0
var/duration = 10 //in deciseconds
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
///time, in deciseconds, that this object will exist
var/duration = 10
///if true, will pick a random direction when created.
var/randomdir = TRUE
///id of the deletion timer
var/timerid
/obj/effect/temp_visual/Initialize(mapload)
. = ..()
if(randomdir)
dir = pick(list(NORTH, SOUTH, EAST, WEST))
timerid = QDEL_IN(src, duration)
setDir(pick(GLOB.cardinal))
timerid = QDEL_IN_STOPPABLE(src, duration)
/obj/effect/temp_visual/Destroy()
. = ..()
@@ -22,17 +25,13 @@
/obj/effect/temp_visual/singularity_act()
return
/obj/effect/temp_visual/singularity_pull()
return
/obj/effect/temp_visual/legacy_ex_act()
/obj/effect/temp_visual/singularity_pull(atom/singularity, current_size)
return
/obj/effect/temp_visual/dir_setting
randomdir = FALSE
/obj/effect/temp_visual/dir_setting/Initialize(mapload, setDir)
if(setDir)
dir = setDir
return ..()
/obj/effect/temp_visual/dir_setting/Initialize(mapload, set_dir)
if(set_dir)
setDir(set_dir)
. = ..()