Fixing blood spreading too much during surgery (#26266)

* bloody blood

* ehhhh

* here too

* bloodwrite fix

* a

* review changes

* max blood amount to argument

* Update code/game/atoms.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com>

* Update code/modules/mob/living/carbon/human/human_defense.dm

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com>

* tab

---------

Signed-off-by: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
HMBGERDO
2024-08-15 23:51:48 +00:00
committed by GitHub
co-authored by DGamerL Burzah
parent 6032712fab
commit fbe49dabbc
9 changed files with 53 additions and 23 deletions
+8 -2
View File
@@ -278,7 +278,10 @@
drop.overlays |= I
drop.transfer_mob_blood_dna(src)
drop.basecolor = b_data["blood_color"]
if(b_data && !isnull(b_data["blood_color"]))
drop.basecolor = b_data["blood_color"]
else
drop.basecolor = "#A10808"
drop.update_icon()
else
temp_blood_DNA = list()
@@ -287,7 +290,10 @@
else
drop = new(T)
drop.transfer_mob_blood_dna(src)
drop.basecolor = b_data["blood_color"]
if(b_data && !isnull(b_data["blood_color"]))
drop.basecolor = b_data["blood_color"]
else
drop.basecolor = "#A10808"
drop.update_icon()
if(emittor_intertia)
drop.newtonian_move(emittor_intertia)
+1 -1
View File
@@ -109,7 +109,7 @@
affected.fix_internal_bleeding()
if(ishuman(user) && prob(40))
var/mob/living/carbon/human/U = user
U.make_bloody_hands(target.get_blood_dna_list(), target.get_blood_color())
U.make_bloody_hands(target.get_blood_dna_list(), target.get_blood_color(), 0)
return SURGERY_STEP_CONTINUE
+1 -1
View File
@@ -452,7 +452,7 @@
switch(blood_level)
if(SURGERY_BLOODSPREAD_HANDS)
target.visible_message("<span class='notice'>Blood splashes onto [user]'s hands.</span>")
H.make_bloody_hands(target.get_blood_dna_list(), target.get_blood_color())
H.make_bloody_hands(target.get_blood_dna_list(), target.get_blood_color(), 0)
if(SURGERY_BLOODSPREAD_FULLBODY)
target.visible_message("<span class='notice'>A spray of blood coats [user].</span>")
H.bloody_body(target)