mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Fixes transparent_protection being used incorrectly almost everywhere (#90894)
## About The Pull Request ``transparent_protection`` is a set of cover flags which are supposed to be used for things that can be seen, but cannot be accessed. Replaced the argument in ``check_obscured_slots`` with a separate ``check_covered_slots`` proc for clarity. Closes #90827 Also went a bit down a rabbit hole and fixed some UI issues with the strip menu, as I found out that covered slots also counted as obscured. Covered, but not obscured slots are now semi-transparent, images are pixel-perfect, and action buttons no longer are offset. Also slots with items in them don't have the background, akin to how inventory slots function in-game.
This commit is contained in:
@@ -137,7 +137,7 @@
|
||||
|
||||
var/dirty_hands = !!(target_flags & (ITEM_SLOT_GLOVES|ITEM_SLOT_HANDS))
|
||||
var/dirty_feet = !!(target_flags & ITEM_SLOT_FEET)
|
||||
var/slots_to_bloody = target_flags & ~check_obscured_slots()
|
||||
var/slots_to_bloody = target_flags & ~check_covered_slots()
|
||||
var/list/all_worn = get_equipped_items()
|
||||
for(var/obj/item/thing as anything in all_worn)
|
||||
if(thing.slot_flags & slots_to_bloody)
|
||||
|
||||
Reference in New Issue
Block a user