mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user