[MIRROR] Adds Support For Exotic Bloodtypes To Operating Computer [MDB IGNORE] (#16500)

* Adds Support For Exotic Bloodtypes To Operating Computer (#70149)

Hey there,

So basically, whenever you had an ethereal or some other species with an exotic blood type (ethereals bleed liquid electricity)- you would get a standard blood type that came from... somewhere? No idea what that was reading. Anyways, this PR just fixes the DM-side code to pass either the actual Rhesus blood type if it's genuine blood, or if it's something special (like a clown on April Fool's day)- it'll say that instead. Splendid!

* Adds Support For Exotic Bloodtypes To Operating Computer

Co-authored-by: san7890 <the@san7890.com>
This commit is contained in:
SkyratBot
2022-09-28 11:12:47 +01:00
committed by GitHub
co-authored by san7890
parent ff3b89d108
commit 4ebeed965c
+9 -1
View File
@@ -110,7 +110,15 @@
data["patient"]["stat"] = "Dead"
data["patient"]["statstate"] = "bad"
data["patient"]["health"] = patient.health
data["patient"]["blood_type"] = patient.dna?.blood_type
// check here to see if the patient has standard blood reagent, or special blood (like how ethereals bleed liquid electricity) to show the proper name in the computer
var/blood_id = patient.get_blood_id()
if(blood_id == /datum/reagent/blood)
data["patient"]["blood_type"] = patient.dna?.blood_type
else
var/datum/reagent/special_blood = GLOB.chemical_reagents_list[blood_id]
data["patient"]["blood_type"] = special_blood ? special_blood.name : blood_id
data["patient"]["maxHealth"] = patient.maxHealth
data["patient"]["minHealth"] = HEALTH_THRESHOLD_DEAD
data["patient"]["bruteLoss"] = patient.getBruteLoss()