[MIRROR] Converted check_obscured_slots() output to bitfield instead of list (#586)

* Converted check_obscured_slots() output to bitfield instead of list (#53241)

* Converted check_obscured_slots() output to bitfield instead of list

Co-authored-by: Donkie <daniel.cf.hultgren@gmail.com>
This commit is contained in:
SkyratBot
2020-09-02 02:45:57 +02:00
committed by GitHub
co-authored by Donkie
parent 7874ea4964
commit 24f7e8fff6
10 changed files with 73 additions and 73 deletions
+2 -2
View File
@@ -44,7 +44,7 @@
* Returns true if the parent item is obscured by something else that the wielder is wearing
*/
/datum/component/bloodysoles/proc/is_obscured()
return equipped_slot in wielder.check_obscured_slots(TRUE)
return wielder.check_obscured_slots(TRUE) & equipped_slot
/**
* Run to update the icon of the parent
@@ -266,7 +266,7 @@
/datum/component/bloodysoles/feet/is_obscured()
if(wielder.shoes)
return TRUE
return ITEM_SLOT_FEET in wielder.check_obscured_slots(TRUE)
return wielder.check_obscured_slots(TRUE) & ITEM_SLOT_FEET
/datum/component/bloodysoles/feet/on_moved(datum/source, OldLoc, Dir, Forced)
if(wielder.num_legs < 2)