mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
18 lines
703 B
Plaintext
18 lines
703 B
Plaintext
PROCESSING_SUBSYSTEM_DEF(radiation)
|
|
name = "Radiation"
|
|
flags = SS_NO_INIT | SS_BACKGROUND
|
|
priority = 25
|
|
|
|
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.add_details("contaminated", "[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) |