Files
GS13/code/datums/components/empprotection.dm

12 lines
336 B
Plaintext

/datum/component/empprotection
var/flags = NONE
/datum/component/empprotection/Initialize(_flags)
if(!istype(parent, /atom))
return COMPONENT_INCOMPATIBLE
flags = _flags
RegisterSignal(parent, list(COMSIG_ATOM_EMP_ACT),PROC_REF(getEmpFlags))
/datum/component/empprotection/proc/getEmpFlags(datum/source, severity)
return flags