Files
Cameron Lennox 5325be90b1 Aberrations (#19547)
* Start

Adds starts active versions of barbed wire.

Adds 'named from material' var.

Fixes spears from defaulting to fragile if they're made with a butterfly knife.

* Makes cautery properly stop bleeding

* Adds Glass Wire

Adds wire that cuts a limb, doing 12 damage and a surgical cut to the limb.

This is blocked via thick clothing.

* Combines traps & traps_vr

* Update alien_alloy.dm

Makes adminspawn object unobtainable

* wip

* wip

* Fire Abber

* awaw

* housekeeeping

* Glass

* ye

* Update fire.dm

* whoops infinite glass

* rando
2026-06-25 13:48:48 -04:00

56 lines
1.3 KiB
Plaintext

/obj/effect/abstract/abberation
name = "Abberation"
desc = "Some sort of weird, pulsating entity."
icon = 'icons/effects/effects.dmi'
icon_state = "pre_confuse"
alpha = 0
///If the abberation starts active or not.
var/start_active = TRUE
///If the abberation has a toggling effect (Turns on-off)
var/enabled = FALSE
///If it pulses or not. i.e. has a non-continuous effect
var/pulses = FALSE
///Min time for pulses to occur
var/pulse_time_min = 15
///Max time for pulses to occur
var/pulse_time_max = 30
///The cooldown for our pulse
COOLDOWN_DECLARE(pulse)
/obj/effect/abstract/abberation/Initialize(mapload)
. = ..()
if(start_active)
START_PROCESSING(SSobj, src)
/obj/effect/abstract/abberation/Destroy()
. = ..()
STOP_PROCESSING(SSobj, src)
/obj/effect/abstract/abberation/process()
if(COOLDOWN_FINISHED(src, pulse))
perform_pulse()
COOLDOWN_START(src, pulse, rand(pulse_time_min, pulse_time_max))
perform_ambient_effects()
/obj/effect/abstract/abberation/proc/perform_pulse()
return
/obj/effect/abstract/abberation/proc/perform_ambient_effects()
return
/*
//Useful for later
var/static/list/connections = list(
COMSIG_ATOM_ENTERED = PROC_REF(ignite_the_unworthy),
)
AddComponent(/datum/component/connect_range, src, connections, range)
*/