mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-23 15:17:43 +01:00
f6a99359a9
* move Invisibility to defines * . * .
32 lines
894 B
Plaintext
32 lines
894 B
Plaintext
/datum/technomancer/spell/darkness
|
|
name = "Darkness"
|
|
desc = "Disrupts photons moving in a local area, causing darkness to shroud yourself or a position of your choosing."
|
|
cost = 25
|
|
obj_path = /obj/item/spell/spawner/darkness
|
|
category = UTILITY_SPELLS
|
|
|
|
/obj/item/spell/spawner/darkness
|
|
name = "darkness"
|
|
desc = "Not even light can stand in your way now."
|
|
icon_state = "darkness"
|
|
cast_methods = CAST_RANGED
|
|
aspect = ASPECT_DARK
|
|
spawner_type = /obj/effect/temporary_effect/darkness
|
|
|
|
/obj/item/spell/spawner/darkness/on_ranged_cast(atom/hit_atom, mob/user)
|
|
if(pay_energy(500))
|
|
adjust_instability(4)
|
|
..()
|
|
|
|
/obj/item/spell/spawner/darkness/Initialize(mapload)
|
|
. = ..()
|
|
set_light(6, -20, l_color = "#FFFFFF")
|
|
|
|
/obj/effect/temporary_effect/darkness
|
|
name = "darkness"
|
|
time_to_die = 2 MINUTES
|
|
invisibility = INVISIBILITY_ABSTRACT
|
|
light_range = 6
|
|
light_power = -20
|
|
light_on = TRUE
|