Transparent protection for clothing [READY] (#42075)

* Transparent_protection

* No longer protects captain mask

webedit?

* Use NONE
This commit is contained in:
4dplanner
2019-01-02 20:23:10 +00:00
committed by yogstation13-bot
parent 37f6b16762
commit 7375bf136c
8 changed files with 11 additions and 6 deletions

View File

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