mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-20 07:02:30 +00:00
* Repaths obj/effect/effect, datum/effect/effect * linter fixes * No new Co-authored-by: Atermonera <forslandm@gmail.com>
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
|
|
/obj/effect/temporary_effect/eruption
|
|
name = "eruption"
|
|
desc = "Oh shit!"
|
|
icon_state = "pool"
|
|
icon = 'icons/effects/64x64.dmi'
|
|
pixel_x = -16
|
|
|
|
/obj/effect/temporary_effect/eruption/Initialize(var/ml, var/ttd = 10 SECONDS, var/newcolor)
|
|
if(ttd)
|
|
time_to_die = ttd
|
|
if(newcolor)
|
|
color = newcolor
|
|
. = ..()
|
|
flick("[icon_state]_create",src)
|
|
|
|
/obj/effect/temporary_effect/eruption/Destroy()
|
|
var/turf/T = get_turf(src)
|
|
flick("[icon_state]_erupt",src)
|
|
spawn(5)
|
|
if(on_eruption(T))
|
|
spawn(2)
|
|
..()
|
|
|
|
/obj/effect/temporary_effect/eruption/proc/on_eruption(var/turf/Target) // Override for specific functions, as below.
|
|
return TRUE
|
|
|
|
/obj/effect/temporary_effect/eruption/testing/on_eruption(var/turf/Target)
|
|
if(Target)
|
|
new /obj/effect/vfx/explosion(Target)
|
|
return TRUE
|
|
|
|
/*
|
|
* Subtypes
|
|
*/
|
|
|
|
/obj/effect/temporary_effect/eruption/flamestrike
|
|
desc = "A bubbling pool of fire!"
|
|
|
|
/obj/effect/temporary_effect/eruption/flamestrike/on_eruption(var/turf/Target)
|
|
if(Target)
|
|
Target.hotspot_expose(1000, 50, 1)
|
|
|
|
for(var/mob/living/L in Target)
|
|
L.fire_stacks += 2
|
|
L.add_modifier(/datum/modifier/fire/stack_managed/intense, 30 SECONDS)
|
|
|
|
return TRUE |