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 15:23:10 -05:00
committed by Jordan Brown
parent 620195fe22
commit 9e962ff5b7
8 changed files with 11 additions and 6 deletions
+1
View File
@@ -48,6 +48,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
//Since any item can now be a piece of clothing, this has to be put here so all items share it.
var/flags_inv //This flag is used to determine when items in someone's inventory cover others. IE helmets making it so you can't see glasses, etc.
var/transparent_protection = NONE //you can see someone's mask through their transparent visor, but you can't reach it
var/interaction_flags_item = INTERACT_ITEM_ATTACK_HAND_PICKUP
+1 -1
View File
@@ -360,7 +360,7 @@
if(M.back && wash_obj(M.back))
M.update_inv_back(0)
var/list/obscured = M.check_obscured_slots()
var/list/obscured = M.check_obscured_slots(TRUE) //can't wash a gas mask through a visor
if(M.head && wash_obj(M.head))
M.update_inv_head()