Cult ghosts begin to die if they go too far from the summoner (#20196)

* you are dead pls nerf

* Update code/datums/status_effects/debuffs.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Get_dist_euclidian

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Qwertytoforty
2023-01-31 22:14:45 -06:00
committed by GitHub
co-authored by Luc
parent 35476ab2c2
commit 9315f5c104
2 changed files with 13 additions and 2 deletions
+12 -1
View File
@@ -23,14 +23,25 @@
owner.adjustFireLoss(0.1)
owner.adjustToxLoss(0.2)
/datum/status_effect/cultghost //is a cult ghost and can't use manifest runes
/datum/status_effect/cultghost //is a cult ghost and can't use manifest runes, can see ghosts and dies if too far from summoner
id = "cult_ghost"
duration = -1
alert_type = null
var/damage = 7.5
var/source_UID
/datum/status_effect/cultghost/on_creation(mob/living/new_owner, mob/living/source)
. = ..()
source_UID = source.UID()
/datum/status_effect/cultghost/tick()
if(owner.reagents)
owner.reagents.del_reagent("holywater") //can't be deconverted
var/mob/living/summoner = locateUID(source_UID)
if(get_dist_euclidian(summoner, owner) < 21)
return
owner.adjustBruteLoss(damage)
to_chat(owner, "<span class='userdanger'>You are too far away from the summoner!</span>")
/datum/status_effect/crusher_mark
id = "crusher_mark"