mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-29 11:31:51 +00:00
Added NO_BLOOD checks to drips, syringes.
This commit is contained in:
@@ -172,6 +172,7 @@ var/const/BLOOD_VOLUME_SURVIVE = 122
|
||||
|
||||
//Gets blood from mob to the container, preserving all data in it.
|
||||
/mob/living/carbon/proc/take_blood(obj/item/weapon/reagent_containers/container, var/amount)
|
||||
|
||||
var/datum/reagent/B = get_blood(container.reagents)
|
||||
if(!B) B = new /datum/reagent/blood
|
||||
B.holder = container
|
||||
|
||||
@@ -89,6 +89,12 @@
|
||||
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/mob/living/carbon/human/H = T
|
||||
if(H.species && H.species.flags & NO_BLOOD)
|
||||
user << "\red You are unable to locate any blood."
|
||||
return
|
||||
|
||||
var/datum/reagent/B = T.take_blood(src,amount)
|
||||
|
||||
if (B)
|
||||
|
||||
Reference in New Issue
Block a user