Made syringes take from the reagents datum of a NO_BLOOD mob rater than vessel.

This commit is contained in:
Zuhayr
2014-01-05 14:20:23 +10:30
parent b05f81df3d
commit 19979562c9

View File

@@ -89,13 +89,16 @@
user << "\red You are unable to locate any blood."
return
if(istype(T,/mob/living/carbon/human)) //TODO: make blood sampling take from the reagents datum instead of vessel.
var/datum/reagent/B
if(istype(T,/mob/living/carbon/human))
var/mob/living/carbon/human/H = T
if(H.species && H.species.flags & NO_BLOOD)
user << "\red You are unable to locate any blood."
H.reagents.trans_to(src,amount)
return
var/datum/reagent/B = T.take_blood(src,amount)
else
B = T.take_blood(src,amount)
else
B = T.take_blood(src,amount)
if (B)
src.reagents.reagent_list += B