This commit is contained in:
Guti
2025-04-26 21:45:01 +02:00
committed by GitHub
parent aabca69072
commit 369c46830e
4 changed files with 36 additions and 8 deletions
@@ -139,6 +139,24 @@
/obj/effect/decal/cleanable/vomit/old/Crossed(mob/living/carbon/human/perp)
return // Don't spread our viruses
/obj/effect/decal/cleanable/blood/old
dryname = "nasty dried blood"
drydesc = "Why hasn't anyone cleaned this up yet?"
/obj/effect/decal/cleanable/blood/old/Initialize(mapload, list/datum/disease/diseases)
. = ..()
basecolor = get_random_colour(rand(0, 1))
update_icon()
if(length(diseases))
viruses += diseases
if(prob(75))
var/datum/disease/advance/new_disease = new /datum/disease/advance/random(rand(2, 4), rand(7, 9), 4)
src.viruses += new_disease
dry()
/obj/effect/decal/cleanable/blood/old/Crossed(mob/living/carbon/human/perp)
return
/obj/effect/decal/cleanable/tomato_smudge
name = "tomato smudge"
desc = "It's red."
@@ -194,12 +194,11 @@
if(!target_disease)
return
using = TRUE
// I'll see about this...
// var/choice = tgui_alert(user, "What would you like to isolate?", "Isolate", list("Symptom", "Disease"))
// if(choice == "Symptom")
//. = isolate_symptom(user, target, target_disease)
// else
. = isolate_disease(user, target, target_disease)
var/choice = tgui_alert(user, "What would you like to isolate?", "Isolate", list("Symptom", "Disease"))
if(choice == "Symptom")
. = isolate_symptom(user, target, target_disease)
else
. = isolate_disease(user, target, target_disease)
using = FALSE
/obj/item/extrapolator/proc/isolate_symptom(mob/living/user, atom/target, datum/disease/advance/target_disease)