From 12e2aa0c9a6d35d801ca2b525bb4e37c54d78463 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Sun, 31 Jul 2022 03:14:10 -0400 Subject: [PATCH] defines organ bitflags as bitfields so admins can literally give people heart attacks whenever they want with the click of a button (#68869) --- code/__DEFINES/obj_flags.dm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/__DEFINES/obj_flags.dm b/code/__DEFINES/obj_flags.dm index 5b7d0402c22..05b61286c4f 100644 --- a/code/__DEFINES/obj_flags.dm +++ b/code/__DEFINES/obj_flags.dm @@ -79,6 +79,18 @@ #define ORGAN_SYNTHETIC_EMP (1<<6) //Synthetic organ affected by an EMP. Deteriorates over time. #define ORGAN_UNREMOVABLE (1<<7) //Can't be removed using surgery +DEFINE_BITFIELD(organ_flags, list( + "ORGAN_SYNTHETIC" = ORGAN_SYNTHETIC, + "ORGAN_FROZEN" = ORGAN_FROZEN, + "ORGAN_FAILING" = ORGAN_FAILING, + "ORGAN_EXTERNAL" = ORGAN_EXTERNAL, + "ORGAN_VITAL" = ORGAN_VITAL, + "ORGAN_EDIBLE" = ORGAN_EDIBLE, + "ORGAN_SYNTHETIC_EMP" = ORGAN_SYNTHETIC_EMP, + "ORGAN_UNREMOVABLE" = ORGAN_UNREMOVABLE, +)) + + /// Integrity defines for clothing (not flags but close enough) #define CLOTHING_PRISTINE 0 // We have no damage on the clothing #define CLOTHING_DAMAGED 1 // There's some damage on the clothing but it still has at least one functioning bodypart and can be equipped