mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Transparent protection for clothing [READY] (#42075)
* Transparent_protection * No longer protects captain mask webedit? * Use NONE
This commit is contained in:
committed by
yogstation13-bot
parent
37f6b16762
commit
7375bf136c
@@ -385,12 +385,14 @@
|
||||
drop_all_held_items()
|
||||
|
||||
|
||||
/mob/living/carbon/proc/check_obscured_slots()
|
||||
/mob/living/carbon/proc/check_obscured_slots(transparent_protection)
|
||||
var/list/obscured = list()
|
||||
var/hidden_slots = NONE
|
||||
|
||||
for(var/obj/item/I in get_equipped_items())
|
||||
hidden_slots |= I.flags_inv
|
||||
if(transparent_protection)
|
||||
hidden_slots |= I.transparent_protection
|
||||
|
||||
if(hidden_slots & HIDENECK)
|
||||
obscured |= SLOT_NECK
|
||||
|
||||
Reference in New Issue
Block a user