god damn bitflags ARGH

This commit is contained in:
Thalpy
2019-11-21 20:30:49 +00:00
parent db74091dd4
commit 7b17bf2acd
3 changed files with 14 additions and 12 deletions

View File

@@ -940,11 +940,11 @@ datum/reagent/medicine/styptic_powder/overdose_start(mob/living/M)
description = "Reacts with neural tissue, helping reform damaged connections. Can cure minor traumas."
color = "#EEFF8F"
/datum/reagent/neurine/reaction_mob(mob/living/M, method=TOUCH, reac_volume)
if(method != INJECT)
/datum/reagent/medicine/neurine/reaction_mob(mob/living/M, method=TOUCH, reac_volume)
if(!(method == INJECT))
return
var/obj/item/organ/brain/B = M.getorganslot(ORGAN_SLOT_BRAIN)
if(!B || !(B.organ_flags & ORGAN_FAILING))
if(!B || (B.organ_flags & ORGAN_FAILING))
return
B.applyOrganDamage(-20)
if(prob(80))
@@ -953,6 +953,7 @@ datum/reagent/medicine/styptic_powder/overdose_start(mob/living/M)
B.gain_trauma_type(BRAIN_TRAUMA_SEVERE)
else
B.gain_trauma_type(BRAIN_TRAUMA_SPECIAL)
message_admins("Trauma'd")
/datum/reagent/medicine/neurine/on_mob_life(mob/living/carbon/C)
if(holder.has_reagent("neurotoxin"))