Files
Kashargul 5926589c16 removes var/ inside all procs (#19450)
* removes var/ inside all procs

* .

* ugh
2026-05-05 10:55:17 +02:00

50 lines
1.5 KiB
Plaintext

/// Verified to work with the Artifact Harvester
/datum/artifact_effect/feysight
name = "Fey Sight"
effect_type = EFFECT_FEYSIGHT
effect_state = "pulsing"
effect_color = "#00c763"
/datum/artifact_effect/feysight/proc/apply_modifier(mob/living/L)
if(!isliving(L))
return FALSE
if(!L.is_sentient())
return FALSE // Drons are presumably deaf to any psionic things.
if(L.add_modifier(/datum/modifier/feysight, 30 SECONDS))
to_chat(L, span_alien("An otherworldly feeling seems to enter your mind, and you feel at peace."))
L.adjustHalLoss(10)
to_chat(L, span_danger("The inside of your head hurts..."))
return TRUE
else
if(L.has_modifier_of_type(/datum/modifier/feysight))
to_chat(L, span_warning("An otherworldly feeling seems to enter your mind again, and it holds the visions in place."))
else
to_chat(L, span_warning("An otherworldly feeling seems to enter your mind, and you briefly feel peace, but \
it quickly passes."))
return FALSE
/datum/artifact_effect/feysight/DoEffectTouch(mob/toucher)
if(toucher && isliving(toucher))
apply_modifier(toucher)
return TRUE
/datum/artifact_effect/feysight/DoEffectAura()
var/atom/holder = get_master_holder()
if(holder)
var/turf/T = get_turf(holder)
for(var/mob/living/L in range(src.effectrange,T))
if(prob(10))
apply_modifier(L)
return TRUE
/datum/artifact_effect/feysight/DoEffectPulse()
var/atom/holder = get_master_holder()
if(holder)
var/turf/T = get_turf(holder)
for(var/mob/living/L in range(src.effectrange,T))
apply_modifier(L)
return TRUE