Shadowling veil nullifies glowy for 5 seconds (#16845)

* glowy nullify

* Update shadowling_abilities.dm
This commit is contained in:
ynot01
2022-12-02 09:46:08 -05:00
committed by GitHub
parent 51ab961a68
commit 4dc409ced5
2 changed files with 17 additions and 0 deletions

View File

@@ -195,6 +195,7 @@
var/glow = 3.5
var/range = 2.5
var/color
var/current_nullify_timer // For veil yogstation\code\modules\antagonists\shadowling\shadowling_abilities.dm
power_coeff = 1
conflicts = list(/datum/mutation/human/glow/anti)

View File

@@ -136,6 +136,22 @@
if(cold)
extinguishItem(F, TRUE)
extinguishItem(F)
if(iscarbon(H))
var/mob/living/carbon/M = H
var/datum/mutation/human/glow/G = M.dna.get_mutation(GLOWY)
if(G)
G.glowth.set_light(0, 0) // Set glowy to no light
if(G.current_nullify_timer)
deltimer(G.current_nullify_timer) // Stacks
G.current_nullify_timer = addtimer(CALLBACK(src, .proc/giveGlowyBack, M), 5 SECONDS, TIMER_STOPPABLE)
/obj/effect/proc_holder/spell/aoe_turf/proc/giveGlowyBack(mob/living/carbon/M)
if(!M)
return
var/datum/mutation/human/glow/G = M.dna.get_mutation(GLOWY)
if(G)
G.modify() // Re-sets glowy
G.current_nullify_timer = null
/obj/effect/proc_holder/spell/aoe_turf/veil/cast(list/targets,mob/user = usr)
if(!shadowling_check(user) && !admin_override)