Merge pull request #13679 from DeltaFire15/system-corruption

[TESTMERGE ONLY] System Corruption for robotic species
This commit is contained in:
silicons
2020-11-18 22:54:51 -07:00
committed by GitHub
38 changed files with 437 additions and 36 deletions
@@ -1693,3 +1693,26 @@
name = "Synthi-Sanguirite"
description = "A synthetic coagulant used to help bleeding wounds clot faster. Not quite as effective as name brand Sanguirite, especially on patients with lots of cuts."
clot_coeff_per_wound = 0.8
//Sloowly heals system corruption in robotic organisms. Causes mild toxins damage in nonrobots.
/datum/reagent/medicine/system_cleaner
name = "System Cleaner"
description = "A reagent with special properties causing it to slowly reduce corruption in robots. Mildly toxic for organics."
reagent_state = LIQUID
color = "#D7C9C6"
metabolization_rate = 0.2 * REAGENTS_METABOLISM
overdose_threshold = 30
/datum/reagent/medicine/system_cleaner/on_mob_life(mob/living/carbon/M)
. = ..()
if(HAS_TRAIT(M, TRAIT_ROBOTIC_ORGANISM))
M.adjustToxLoss(-0.2, toxins_type = TOX_SYSCORRUPT)
else
M.adjustToxLoss(0.5)
/datum/reagent/medicine/system_cleaner/overdose_process(mob/living/carbon/M)
. = ..()
if(HAS_TRAIT(M, TRAIT_ROBOTIC_ORGANISM))
M.adjustToxLoss(0.4, toxins_type = TOX_SYSCORRUPT) //inverts its positive effect on overdose, for organics it's just more toxic
else
M.adjustToxLoss(0.5)
@@ -368,3 +368,9 @@
var/location = get_turf(holder.my_atom)
for(var/i = 1, i <= created_volume, i++)
new /obj/item/stack/medical/mesh/(location)
/datum/chemical_reaction/system_cleaner
name = "System Cleaner"
id = /datum/reagent/medicine/system_cleaner
results = list(/datum/reagent/medicine/system_cleaner = 4)
required_reagents = list(/datum/reagent/iron = 2, /datum/reagent/oil = 2, /datum/reagent/medicine/calomel = 2, /datum/reagent/acetone = 2)