mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-19 14:42:25 +00:00
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
/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, "<span class='alien'>An otherworldly feeling seems to enter your mind, and you feel at peace.</span>")
|
|
L.adjustHalLoss(10)
|
|
to_chat(L, "<span class='danger'>The inside of your head hurts...</span>")
|
|
return TRUE
|
|
else
|
|
if(L.has_modifier_of_type(/datum/modifier/feysight))
|
|
to_chat(L, "<span class='warning'>An otherworldly feeling seems to enter your mind again, and it holds the visions in place.</span>")
|
|
else
|
|
to_chat(L, "<span class='warning'>An otherworldly feeling seems to enter your mind, and you briefly feel peace, but \
|
|
it quickly passes.</span>")
|
|
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 |