mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Datumizes changelings and refactors related code (#17774)
* it's finally here unfucks tgui * oops, I don't want to change the mode * charlie and moxian review * charlie review II + some GC fixes * rebase to fix conflicts + tgui bundle deconflict * charlie review III + affected review * final? tweaks
This commit is contained in:
@@ -242,16 +242,12 @@
|
||||
return
|
||||
if(!(M.status_flags & CANPARALYSE))
|
||||
return
|
||||
if(M.mind && M.mind.changeling && M.mind.changeling.regenerating) //no messing with changeling's fake death
|
||||
return
|
||||
M.emote("deathgasp")
|
||||
ADD_TRAIT(M, TRAIT_FAKEDEATH, id)
|
||||
M.updatehealth("fakedeath reagent")
|
||||
|
||||
/datum/reagent/proc/fakerevive(mob/living/M)
|
||||
if(!HAS_TRAIT(M, TRAIT_FAKEDEATH))
|
||||
return
|
||||
if(M.mind && M.mind.changeling && M.mind.changeling.regenerating)
|
||||
if(!HAS_TRAIT_FROM(M, TRAIT_FAKEDEATH, id))
|
||||
return
|
||||
if(M.resting)
|
||||
M.StopResting()
|
||||
|
||||
Reference in New Issue
Block a user