mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-29 00:31:50 +01:00
90ceccb06b
Fixes a hard del related to ID cards. Yet another of the "extremely tiny hard dels".
28 lines
672 B
Plaintext
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)
|