Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potassium iodide can now be used to decontaminate items #1554

Merged
merged 4 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions monkestation/code/datums/components/irradiated.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/datum/component/irradiated/RegisterWithParent()
. = ..()
if(!ismob(parent)) // no, you still have to go under the shower
RegisterSignal(parent, COMSIG_ATOM_EXPOSE_REAGENT, PROC_REF(on_expose_reagent))

/datum/component/irradiated/UnregisterFromParent()
. = ..()
UnregisterSignal(parent, COMSIG_ATOM_EXPOSE_REAGENT)

/datum/component/irradiated/proc/on_expose_reagent(atom/source, datum/reagent/reagent, reac_volume)
SIGNAL_HANDLER
if(istype(reagent, /datum/reagent/medicine/potass_iodide) && reac_volume >= 1)
qdel(src)
wraith-54321 marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions monkestation/code/modules/reagents/misc.dm
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/datum/reagent/romerol
restricted = TRUE

/datum/reagent/medicine/potass_iodide
description = "Heals low toxin damage while the patient is irradiated, and will halt the damaging effects of radiation. Can be used to decontaminate irradiated items."
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -5694,6 +5694,7 @@
#include "monkestation\code\datums\brain_damage\magic.dm"
#include "monkestation\code\datums\brain_damage\phobia.dm"
#include "monkestation\code\datums\components\carbon_sprint.dm"
#include "monkestation\code\datums\components\irradiated.dm"
#include "monkestation\code\datums\components\multi_hit.dm"
#include "monkestation\code\datums\components\throw_bounce.dm"
#include "monkestation\code\datums\components\turf_healing.dm"
Expand Down
Loading