Skip to content

Commit

Permalink
Fixes reagent ID being displayed as blood type (tgstation#23379)
Browse files Browse the repository at this point in the history
  • Loading branch information
Core0verload authored and KorPhaeron committed Jan 28, 2017
1 parent 085aad7 commit 4424fb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/game/objects/items/devices/scanners.dm
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ MASS SPECTROMETER
var/blood_percent = round((C.blood_volume / BLOOD_VOLUME_NORMAL)*100)
var/blood_type = C.dna.blood_type
if(blood_id != "blood")//special blood substance
blood_type = blood_id
var/datum/reagent/R = chemical_reagents_list[blood_id]
if(R)
blood_type = R.name
else
blood_type = blood_id
if(C.blood_volume <= BLOOD_VOLUME_SAFE && C.blood_volume > BLOOD_VOLUME_OKAY)
user << "<span class='danger'>LOW blood level [blood_percent] %, [C.blood_volume] cl,</span> <span class='info'>type: [blood_type]</span>"
else if(C.blood_volume <= BLOOD_VOLUME_OKAY)
Expand Down

0 comments on commit 4424fb2

Please sign in to comment.