Skip to content

Adds two mob helper procs

Created by: unid15

if(usr.stat || usr.restrained() || (usr.status_flags & FAKEDEATH))

becomes

if(usr.isUnconscious() || usr.restrained())

I replaced some instances of ((usr.status_flags & FAKEDEATH) || usr.stat) with the new procs but got slightly bored

Here are the procs themselves:

/mob/proc/isUnconscious() //Returns 1 if unconscious, dead or faking death
    if(stat || (status_flags & FAKEDEATH))
        return 1

/mob/proc/isDead() //Returns 1 if dead or faking death
    if(stat == DEAD || (status_flags & FAKEDEATH))
        return 1

Merge request reports