Goonstation 13 - Modules - TypesDefine Details

_std/macros/items.dm

isitemReturns true if the given x is an item.
isgrabReturns true if the given x is a grab (obj/item/grab)
equipped_or_holdingReturns true if x is equipped or inside & usable in what's equipped (currently only applicable to magtractors)
IS_WORN_BY_SOMEONE_OTHER_THANReturns TRUE if item is worn by a human other than user, FALSE otherwise
IS_NPC_ILLEGAL_ITEMReturns TRUE if the item is something that NPCs should not be able to pick up

Define Details

IS_NPC_ILLEGAL_ITEM

Returns TRUE if the item is something that NPCs should not be able to pick up

IS_WORN_BY_SOMEONE_OTHER_THAN

Returns TRUE if item is worn by a human other than user, FALSE otherwise

equipped_or_holding

Returns true if x is equipped or inside & usable in what's equipped (currently only applicable to magtractors)

isgrab

Returns true if the given x is a grab (obj/item/grab)

isitem

Returns true if the given x is an item.