Files
CHOMPStation2/code/game/gamemodes/technomancer/spells/spawner/darkness.dm
2021-06-18 04:23:09 +00:00

31 lines
885 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/weapon/spell/spawner/darkness
category = UTILITY_SPELLS
/obj/item/weapon/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/weapon/spell/spawner/darkness/on_ranged_cast(atom/hit_atom, mob/user)
if(pay_energy(500))
adjust_instability(4)
..()
/obj/item/weapon/spell/spawner/darkness/New()
..()
set_light(6, -20, l_color = "#FFFFFF")
/obj/effect/temporary_effect/darkness
name = "darkness"
time_to_die = 2 MINUTES
invisibility = 101
light_range = 6
light_power = -20
light_on = TRUE