Adds the bitfield menu to slot_flags (#269)

* Upload files

* reorder alphabetically like the others.
This commit is contained in:
SandPoot
2022-10-19 21:26:40 -03:00
committed by GitHub
parent 1607d9ead8
commit fd7fa516f7
2 changed files with 34 additions and 0 deletions
@@ -0,0 +1,33 @@
/*
If someone decides to name a var slot_flags
outside of /obj/item, I will find you.
(this sort of bitfield definition will ALWAYS
use this menu so you can't var edit normally)
*/
DEFINE_BITFIELD(slot_flags, list(
"ITEM_SLOT_BACK" = ITEM_SLOT_BACK,
"ITEM_SLOT_BACKPACK" = ITEM_SLOT_BACKPACK,
"ITEM_SLOT_BELT" = ITEM_SLOT_BELT,
"ITEM_SLOT_DEX_STORAGE" = ITEM_SLOT_DEX_STORAGE,
"ITEM_SLOT_EARS_LEFT" = ITEM_SLOT_EARS_LEFT,
"ITEM_SLOT_EARS_RIGHT" = ITEM_SLOT_EARS_RIGHT,
"ITEM_SLOT_EYES" = ITEM_SLOT_EYES,
"ITEM_SLOT_FEET" = ITEM_SLOT_FEET,
"ITEM_SLOT_GLOVES" = ITEM_SLOT_GLOVES,
"ITEM_SLOT_HANDCUFFED" = ITEM_SLOT_HANDCUFFED,
"ITEM_SLOT_HANDS" = ITEM_SLOT_HANDS,
"ITEM_SLOT_HEAD" = ITEM_SLOT_HEAD,
"ITEM_SLOT_ICLOTHING" = ITEM_SLOT_ICLOTHING,
"ITEM_SLOT_ID" = ITEM_SLOT_ID,
"ITEM_SLOT_LEGCUFFED" = ITEM_SLOT_LEGCUFFED,
"ITEM_SLOT_LPOCKET" = ITEM_SLOT_LPOCKET,
"ITEM_SLOT_MASK" = ITEM_SLOT_MASK,
"ITEM_SLOT_NECK" = ITEM_SLOT_NECK,
"ITEM_SLOT_OCLOTHING" = ITEM_SLOT_OCLOTHING,
"ITEM_SLOT_RPOCKET" = ITEM_SLOT_RPOCKET,
"ITEM_SLOT_SHIRT" = ITEM_SLOT_SHIRT,
"ITEM_SLOT_SOCKS" = ITEM_SLOT_SOCKS,
"ITEM_SLOT_SUITSTORE" = ITEM_SLOT_SUITSTORE,
"ITEM_SLOT_UNDERWEAR" = ITEM_SLOT_UNDERWEAR,
"ITEM_SLOT_WRISTS" = ITEM_SLOT_WRISTS,
))
+1
View File
@@ -3893,6 +3893,7 @@
#include "modular_citadel\code\modules\vectorcrafts\vectorcraft.dm"
#include "modular_citadel\code\modules\vectorcrafts\vectortruck.dm"
#include "modular_citadel\code\modules\vectorcrafts\vectorvariants.dm"
#include "modular_sand\code\_globalvars\bitfields.dm"
#include "modular_sand\code\_globalvars\lists\misc.dm"
#include "modular_sand\code\_globalvars\lists\objects.dm"
#include "modular_sand\code\_onclick\hud\hud.dm"