mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user