/datum/artifact_effect/feysight
name = "feysight"
effect_type = EFFECT_PSIONIC
/datum/artifact_effect/feysight/proc/apply_modifier(var/mob/living/L)
if(!istype(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, "An otherworldly feeling seems to enter your mind, and you feel at peace.")
L.adjustHalLoss(10)
to_chat(L, "The inside of your head hurts...")
return TRUE
else
if(L.has_modifier_of_type(/datum/modifier/feysight))
to_chat(L, "An otherworldly feeling seems to enter your mind again, and it holds the visions in place.")
else
to_chat(L, "An otherworldly feeling seems to enter your mind, and you briefly feel peace, but \
it quickly passes.")
return FALSE
/datum/artifact_effect/feysight/DoEffectTouch(var/mob/toucher)
if(toucher && isliving(toucher))
apply_modifier(toucher)
return TRUE
/datum/artifact_effect/feysight/DoEffectAura()
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()
if(holder)
var/turf/T = get_turf(holder)
for(var/mob/living/L in range(src.effectrange,T))
apply_modifier(L)
return TRUE