From f83de631242a1f4637bb33373e7a090774382112 Mon Sep 17 00:00:00 2001
From: Fermi <>
Date: Sat, 28 Sep 2019 17:51:55 +0100
Subject: [PATCH] Kev's scanner malarky
---
code/game/objects/items/devices/scanners.dm | 14 +++++++++++---
.../chemistry/reagents/toxin_reagents.dm | 16 ++++++++++++++++
2 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm
index 8ceb8abc16..76f7e4f2e7 100644
--- a/code/game/objects/items/devices/scanners.dm
+++ b/code/game/objects/items/devices/scanners.dm
@@ -190,6 +190,14 @@ SLIME SCANNER
if(Br.cached_size>5)
msg += "\tSubject has a sizeable bosom with a [Br.size] cup.\n"
+ if (M.getOrganLoss(ORGAN_SLOT_BRAIN) >= 200 || !M.getorgan(/obj/item/organ/brain))
+ msg += "\tSubject's brain function is non-existent.\n"
+ else if (M.getOrganLoss(ORGAN_SLOT_BRAIN) >= 120)
+ msg += "\tSevere brain damage detected. Subject likely to have mental traumas.\n"
+ else if (M.getOrganLoss(ORGAN_SLOT_BRAIN) >= 45)
+ msg += "\tBrain damage detected.\n"
+
+ if(iscarbon(M))
var/mob/living/carbon/C = M
if(LAZYLEN(C.get_traumas()))
var/list/trauma_text = list()
@@ -342,9 +350,9 @@ SLIME SCANNER
minor_damage = "\tMildly Damaged Organs: "
else
minor_damage += ""
- to_chat(user, minor_damage)
- to_chat(user, major_damage)
- to_chat(user, max_damage)
+ msg += "[minor_damage]"
+ msg += "[major_damage]"
+ msg += "[max_damage]"
// Species and body temperature
diff --git a/code/modules/reagents/chemistry/reagents/toxin_reagents.dm b/code/modules/reagents/chemistry/reagents/toxin_reagents.dm
index 56cd52e9b6..600b6a64ca 100644
--- a/code/modules/reagents/chemistry/reagents/toxin_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/toxin_reagents.dm
@@ -969,3 +969,19 @@
to_chat(M, "Your missing arm aches from wherever you left it.")
M.emote("sigh")
return ..()
+
+/datum/reagent/toxin/brainhurtingjuice //oof ouch
+ name = "Brain Hurting Juice"
+ id = "brainhurtingjuice"
+ color = "#AAAAAA77" //RGBA: 170, 170, 170, 77
+ toxpwr = 0
+ taste_description = "brain hurting"
+ metabolization_rate = 5
+
+/datum/reagent/toxin/brainhurtingjuice/on_mob_life(mob/living/carbon/M)
+ if(prob(50))
+ M.gain_trauma_type(BRAIN_TRAUMA_MILD)
+ else if(prob(50))
+ M.gain_trauma_type(BRAIN_TRAUMA_SEVERE)
+ else
+ M.gain_trauma_type(BRAIN_TRAUMA_SPECIAL)