mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user