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
+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