mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 05:07:51 +01:00
Merge pull request #6573 from Heroman3003/hard-safety
Prevents resleeving sickness from affecting hardvore victims
This commit is contained in:
@@ -21,4 +21,28 @@
|
||||
stacks = MODIFIER_STACK_EXTEND
|
||||
|
||||
on_created_text = "<span class='warning'>You feel slightly weak and unfocused.</span>"
|
||||
on_expired_text = "<span class='notice'>You feel your strength and focus return to you.</span>"
|
||||
on_expired_text = "<span class='notice'>You feel your strength and focus return to you.</span>"
|
||||
|
||||
/datum/modifier/gory_devourment
|
||||
name = "gory devourment"
|
||||
desc = "You are being devoured! Dying right now would definitely be same as dying as food."
|
||||
stacks = MODIFIER_STACK_EXTEND
|
||||
hidden = TRUE
|
||||
var/datum/mind/cached_mind = null
|
||||
|
||||
/datum/modifier/gory_devourment/can_apply(var/mob/living/L)
|
||||
if(L.stat == DEAD)
|
||||
return FALSE
|
||||
else
|
||||
return TRUE
|
||||
|
||||
/datum/modifier/gory_devourment/on_applied()
|
||||
if(holder.ckey)
|
||||
if(holder.mind)
|
||||
cached_mind = holder.mind
|
||||
return
|
||||
|
||||
/datum/modifier/gory_devourment/on_expire()
|
||||
if(holder.stat == DEAD)
|
||||
cached_mind.vore_death = TRUE
|
||||
return
|
||||
Reference in New Issue
Block a user