This commit is contained in:
CornMyCob
2020-06-18 15:03:13 +01:00
parent fe51aca07f
commit 53f6a7bfba
3 changed files with 63 additions and 34 deletions
+19
View File
@@ -1201,3 +1201,22 @@ so that different stomachs can handle things in different ways VB*/
I.acid_level = 0 //washes off the acid on our clothes
I.extinguish() //extinguishes our clothes
..()
/mob/living/carbon/clean_blood(clean_hands = TRUE, clean_mask = TRUE, clean_feet = TRUE)
// Declared vars because these get changed around
var/do_clean_hands = clean_hands
var/do_clean_mask = clean_mask
var/do_clean_feet = clean_feet
if(head)
if(head.clean_blood())
update_inv_head()
if(head.flags_inv & HIDEMASK)
do_clean_mask = FALSE
if(wear_suit)
if(wear_suit.clean_blood())
update_inv_wear_suit()
if(wear_suit.flags_inv & HIDESHOES)
do_clean_feet = FALSE
if(wear_suit.flags_inv & HIDEGLOVES)
do_clean_hands = FALSE
..(do_clean_hands, do_clean_mask, do_clean_feet)
+26
View File
@@ -1383,3 +1383,29 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
///Force set the mob nutrition
/mob/proc/set_nutrition(change)
nutrition = max(0, change)
/mob/clean_blood(clean_hands = TRUE, clean_mask = TRUE, clean_feet = TRUE)
. = ..()
if(bloody_hands && clean_hands)
bloody_hands = 0
update_inv_gloves()
if(l_hand)
if(l_hand.clean_blood())
update_inv_l_hand()
if(r_hand)
if(r_hand.clean_blood())
update_inv_r_hand()
if(back)
if(back.clean_blood())
update_inv_back()
if(wear_mask && clean_mask)
if(wear_mask.clean_blood())
update_inv_wear_mask()
if(clean_feet)
feet_blood_color = null
qdel(feet_blood_DNA)
bloody_feet = list(BLOOD_STATE_HUMAN = 0, BLOOD_STATE_XENO = 0, BLOOD_STATE_NOT_BLOODY = 0)
blood_state = BLOOD_STATE_NOT_BLOODY
update_inv_shoes()
update_icons() //apply the now updated overlays to the mob