Files
S.P.L.U.R.T-Station-13/code/datums/components/empprotection.dm
Poojawa b6430559e9 datums
2018-09-11 02:49:41 -05:00

12 lines
333 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/getEmpFlags)
/datum/component/empprotection/proc/getEmpFlags(datum/source, severity)
return flags