mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 00:58:26 +01:00
Health Analyzer Rework (medial mains inquire within) (#86666)
This commit is contained in:
@@ -51,11 +51,13 @@
|
||||
/datum/component/irradiated/RegisterWithParent()
|
||||
RegisterSignal(parent, COMSIG_COMPONENT_CLEAN_ACT, PROC_REF(on_clean))
|
||||
RegisterSignal(parent, COMSIG_GEIGER_COUNTER_SCAN, PROC_REF(on_geiger_counter_scan))
|
||||
RegisterSignal(parent, COMSIG_LIVING_HEALTHSCAN, PROC_REF(on_healthscan))
|
||||
|
||||
/datum/component/irradiated/UnregisterFromParent()
|
||||
UnregisterSignal(parent, list(
|
||||
COMSIG_COMPONENT_CLEAN_ACT,
|
||||
COMSIG_GEIGER_COUNTER_SCAN,
|
||||
COMSIG_LIVING_HEALTHSCAN,
|
||||
))
|
||||
|
||||
/datum/component/irradiated/Destroy(force)
|
||||
@@ -186,6 +188,12 @@
|
||||
|
||||
return COMSIG_GEIGER_COUNTER_SCAN_SUCCESSFUL
|
||||
|
||||
/datum/component/irradiated/proc/on_healthscan(datum/source, list/render_list, advanced, mob/user, mode, tochat)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
render_list += conditional_tooltip("<span class='alert ml-1'>Subject is irradiated.</span>", "Supply antiradiation or antitoxin, such as [/datum/reagent/medicine/potass_iodide::name] or [/datum/reagent/medicine/pen_acid::name].", tochat)
|
||||
render_list += "<br>"
|
||||
|
||||
/atom/movable/screen/alert/irradiated
|
||||
name = "Irradiated"
|
||||
desc = "You're irradiated! Heal your toxins quick, and stand under a shower to halt the incoming damage."
|
||||
|
||||
Reference in New Issue
Block a user