mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user