fix(blood): Modifies remove_reagent calls to remove_blood calls

Fixes https://github.com/VOREStation/VOREStation/issues/14817

remove_reagent has no sanitization for making sure the person has at least 1 u of blood remaining, and is therefore unsafe to use.

This commit changes all human remove_reagent("blood", amt) calls with remove_blood(amt).

This should prevent blood disappearing from internal bleeding or dragging someone while they're down or from drawing blood from them and so forth.

Not all cases of remove_reagent("blood", amt) were changed, as some act on organs or other reagent containers not part of a human mob or because it's set_species
This commit is contained in:
Runa Dacino
2023-08-13 20:08:17 +02:00
parent 8ef4ccf3be
commit 09acdfd922
7 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -472,7 +472,7 @@
var/mob/living/carbon/human/H = owner
if(!H.should_have_organ(O_HEART))
return 1
if(H.vessel.remove_reagent("blood", amount))
if(H.remove_blood(amount))
return 1
return 0
@@ -673,4 +673,4 @@
else
user.visible_message("<b>\The [user]</b> lowers its fist.")
return
qdel(src)
qdel(src)