Sterilizine now reduces surgery step failure prob (#19337)

* surgery refactor

* Sterilizine now reduces surgery step failure prob

* Adds steriliizne sprayer to medical vendors
This commit is contained in:
Core0verload
2016-07-18 00:21:48 +03:00
committed by oranges
parent 394d253c8b
commit c0746aec8d
11 changed files with 183 additions and 114 deletions
@@ -56,8 +56,18 @@ All effects don't start immediately, but rather get worse over time; the rate is
/datum/reagent/consumable/ethanol/reaction_mob(mob/living/M, method=TOUCH, reac_volume)//Splashing people with ethanol isn't quite as good as fuel.
if(!istype(M, /mob/living))
return
if(method == TOUCH || method == VAPOR)
if(method in list(TOUCH, VAPOR, PATCH))
M.adjust_fire_stacks(reac_volume / 15)
if(iscarbon(M))
var/mob/living/carbon/C = M
var/power_multiplier = boozepwr / 65 // Weak alcohol has less sterilizing power
for(var/s in C.surgeries)
var/datum/surgery/S = s
S.success_multiplier = max(0.10*power_multiplier, S.success_multiplier)
// +10% success propability on each step, useful while operating in less-than-perfect conditions
return ..()
/datum/reagent/consumable/ethanol/beer
@@ -306,6 +306,12 @@
if(show_message)
M << "<span class='warning'>Your stomach agonizingly cramps!</span>"
else
var/mob/living/carbon/C = M
for(var/s in C.surgeries)
var/datum/surgery/S = s
S.success_multiplier = max(0.10, S.success_multiplier)
// +10% success propability on each step, useful while operating in less-than-perfect conditions
if(show_message)
M << "<span class='danger'>You feel your wounds fade away to nothing!</span>" //It's a painkiller, after all
..()
@@ -387,8 +387,10 @@
if(initial(S.blacklisted))
continue
possible_morphs += S
var/current_species = H.dna.species.type
var/datum/species/mutation = pick(possible_morphs)
if(prob(90) && mutation)
if(mutation && mutation != current_species)
H << "<span class='danger'>The pain subsides. You feel... different.</span>"
H.set_species(mutation)
else
@@ -607,12 +609,21 @@
GG = new/obj/effect/decal/cleanable/greenglow(T)
GG.reagents.add_reagent("radium", reac_volume)
/datum/reagent/sterilizine
/datum/reagent/space_cleaner/sterilizine
name = "Sterilizine"
id = "sterilizine"
description = "Sterilizes wounds in preparation for surgery."
color = "#C8A5DC" // rgb: 200, 165, 220
/datum/reagent/space_cleaner/sterilizine/reaction_mob(mob/living/M, method=TOUCH, reac_volume)
if(iscarbon(M) && (method in list(TOUCH, VAPOR, PATCH)))
var/mob/living/carbon/C = M
for(var/s in C.surgeries)
var/datum/surgery/S = s
S.success_multiplier = max(0.20, S.success_multiplier)
// +20% success propability on each step, useful while operating in less-than-perfect conditions
..()
/datum/reagent/iron
name = "Iron"
id = "iron"
@@ -117,7 +117,6 @@
user << "<span class='notice'>You switch the nozzle setting to [stream_mode ? "\"stream\"":"\"spray\""]. You'll now use [amount_per_transfer_from_this] units per use.</span>"
/obj/item/weapon/reagent_containers/spray/verb/empty()
set name = "Empty Spray Bottle"
set category = "Object"
set src in usr
@@ -136,6 +135,7 @@
desc = "BLAM!-brand non-foaming space cleaner!"
list_reagents = list("cleaner" = 250)
//spray tan
/obj/item/weapon/reagent_containers/spray/spraytan
name = "spray tan"
volume = 50
@@ -143,6 +143,19 @@
list_reagents = list("spraytan" = 50)
/obj/item/weapon/reagent_containers/spray/medical
name = "medical spray"
icon = 'icons/obj/chemical.dmi'
icon_state = "medspray"
volume = 100
/obj/item/weapon/reagent_containers/spray/medical/sterilizer
name = "sterilizer spray"
desc = "Spray bottle loaded with non-toxic sterilizer. Useful in preparation for surgery."
list_reagents = list("sterilizine" = 100)
//pepperspray
/obj/item/weapon/reagent_containers/spray/pepper
name = "pepperspray"