From fd7fa516f7cd49cbd60e6a11ed557dfc44e15c01 Mon Sep 17 00:00:00 2001 From: SandPoot <43283559+SandPoot@users.noreply.github.com> Date: Wed, 19 Oct 2022 21:26:40 -0300 Subject: [PATCH] Adds the bitfield menu to slot_flags (#269) * Upload files * reorder alphabetically like the others. --- modular_sand/code/_globalvars/bitfields.dm | 33 ++++++++++++++++++++++ tgstation.dme | 1 + 2 files changed, 34 insertions(+) create mode 100644 modular_sand/code/_globalvars/bitfields.dm diff --git a/modular_sand/code/_globalvars/bitfields.dm b/modular_sand/code/_globalvars/bitfields.dm new file mode 100644 index 0000000000..934786c792 --- /dev/null +++ b/modular_sand/code/_globalvars/bitfields.dm @@ -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, +)) diff --git a/tgstation.dme b/tgstation.dme index 69047b131d..dce8d7f2d2 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -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"