mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-07 07:52:00 +00:00
The DPRA enters the scene: the Hailstorm Ship (#15567)
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
/datum/effect_system/ion_trail
|
||||
var/turf/old_location
|
||||
var/fade_icon = "ion_fade"
|
||||
var/ion_trails_type = /obj/effect/effect/ion_trails
|
||||
|
||||
/datum/effect_system/ion_trail/New(atom/source_atom)
|
||||
if (source_atom)
|
||||
bind(source_atom)
|
||||
|
||||
|
||||
..(FALSE)
|
||||
|
||||
/datum/effect_system/ion_trail/process()
|
||||
@@ -16,12 +18,12 @@
|
||||
|
||||
if (old_location != location)
|
||||
if (location.is_hole) // openspace or space.
|
||||
var/obj/effect/effect/ion_trails/I = new(old_location)
|
||||
var/obj/effect/effect/ion_trails/I = new ion_trails_type(old_location)
|
||||
if (holder)
|
||||
I.set_dir(holder.dir)
|
||||
|
||||
flick("ion_fade", I)
|
||||
I.icon_state = "blank"
|
||||
if(fade_icon)
|
||||
flick(fade_icon, I)
|
||||
I.icon_state = "blank"
|
||||
animate(I, alpha = 0, time = 18, easing = SINE_EASING | EASE_IN)
|
||||
QDEL_IN(I, 20)
|
||||
|
||||
@@ -38,7 +40,15 @@
|
||||
old_location = null
|
||||
return ..()
|
||||
|
||||
/datum/effect_system/ion_trail/explosion
|
||||
fade_icon = null
|
||||
ion_trails_type = /obj/effect/effect/ion_trails/explosion
|
||||
|
||||
/obj/effect/effect/ion_trails
|
||||
name = "ion trails"
|
||||
icon_state = "ion_trails"
|
||||
anchored = TRUE
|
||||
|
||||
/obj/effect/effect/ion_trails/explosion
|
||||
name = "combustion trails"
|
||||
icon_state = "explosion_particle"
|
||||
Reference in New Issue
Block a user