Files
Aurora.3/code/modules/effects/sparks/visuals.dm
T
VMSolidus 90ceccb06b ID Card Hard Del (#22276)
Fixes a hard del related to ID cards. Yet another of the "extremely tiny
hard dels".
2026-04-19 05:28:28 +00:00

28 lines
672 B
Plaintext

// -- Spark visual effect --
/obj/effect/visual/sparks
name = "sparks"
icon_state = "sparks"
anchored = 1
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
/obj/effect/visual/sparks/Initialize(mapload)
. = ..(mapload)
life_ticks = rand(5,10)
/obj/effect/visual/sparks/tick()
. = ..()
var/turf/T = get_turf(src)
if(T)
T.hotspot_expose(1000, 100)
if (life_ticks < 2)
animate(src, alpha = 0, time = 2, easing = SINE_EASING | EASE_IN)
/obj/effect/visual/sparks/start(var/direction)
if (direction)
addtimer(CALLBACK(src, PROC_REF(do_step), direction), 5, TIMER_STOPPABLE | TIMER_DELETE_ME)
/obj/effect/visual/sparks/proc/do_step(direction)
step(src, direction)