mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
17 lines
700 B
Plaintext
17 lines
700 B
Plaintext
PROCESSING_SUBSYSTEM_DEF(radiation)
|
|
name = "Radiation"
|
|
flags = SS_NO_INIT | SS_BACKGROUND
|
|
|
|
var/list/warned_atoms = list()
|
|
|
|
/datum/controller/subsystem/processing/radiation/proc/warn(datum/component/radioactive/contamination)
|
|
if(!contamination || QDELETED(contamination))
|
|
return
|
|
var/ref = REF(contamination.parent)
|
|
if(warned_atoms[ref])
|
|
return
|
|
warned_atoms[ref] = TRUE
|
|
var/atom/master = contamination.parent
|
|
SSblackbox.record_feedback("tally", "contaminated", 1, master.type)
|
|
var/msg = "has become contamintaed with enough radiation to contaminate other objects. || Source: [contamination.source] || Strength: [contamination.strength]"
|
|
master.investigate_log(msg, INVESTIGATE_RADIATION) |