/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/surgery.dm

IS_ORGANIC_ORGANHelper to figure out if an organ is organic
IS_ROBOTIC_ORGANHelper to figure out if an organ is robotic
ORGAN_ORGANICOrganic organs, the default. Don't get affected by EMPs.
ORGAN_ROBOTICSynthetic organs, or cybernetic organs. Reacts to EMPs and don't deteriorate or heal
ORGAN_MINERALMineral organs. Snowflakey.
ORGAN_FROZENFrozen organs, don't deteriorate
ORGAN_FAILINGFailing organs perform damaging effects until replaced or fixed, and typically they don't function properly either
ORGAN_EMPSynthetic organ affected by an EMP. Deteriorates over time.
ORGAN_VITALCurrently only the brain - Removing this organ KILLS the owner
ORGAN_EDIBLECan be eaten
ORGAN_UNREMOVABLECan't be removed using surgery or other common means
ORGAN_HIDDENCan't be seen by scanners, doesn't anger body purists
ORGAN_VIRGINHas the organ already been inserted inside someone
IS_ORGANIC_LIMBHelper to figure out if a limb is organic
IS_ROBOTIC_LIMBHelper to figure out if a limb is robotic
BODYPART_UNREMOVABLEBodypart cannot be dismembered or amputated
BODYPART_PSEUDOPARTBodypart is a pseudopart (like a chainsaw arm)
BODYPART_IMPLANTEDBodypart did not match the owner's default bodypart limb_id when surgically implanted
BODYPART_UNHUSKABLEBodypart never displays as a husk
BP_BLOCK_CHANGE_SPECIESBodypart does not get replaced during set_species()
HEAD_HAIRHead can have hair
HEAD_FACIAL_HAIRHead can have facial hair
HEAD_LIPSHead can have lips
HEAD_EYESPRITESHead can have eye sprites
HEAD_EYECOLORHead will have colored eye sprites
HEAD_EYEHOLESHead can have eyeholes when missing eyes
HEAD_DEBRAINHead can have debrain overlay
HEAD_ALL_FEATURESAll head flags, default for most heads
SURGERY_STEP_FAILReturn value when the surgery step fails :(
SURGERY_IGNORE_CLOTHESWill allow the surgery to bypass clothes
SURGERY_SELF_OPERABLEWill allow the surgery to be performed by the user on themselves.
SURGERY_REQUIRE_RESTINGWill allow the surgery to work on mobs that aren't lying down.
SURGERY_REQUIRE_LIMBWill allow the surgery to work only if there's a limb.
SURGERY_REQUIRES_REAL_LIMBWill allow the surgery to work only if there's a real (eg. not pseudopart) limb.
SURGERY_MORBID_CURIOSITYWill grant a bonus during surgery steps to users with TRAIT_MORBID while they're using tools with CRUEL_IMPLEMENT
IS_IN_INVALID_SURGICAL_POSITIONReturn true if target is not in a valid body position for the surgery

Define Details

BODYPART_IMPLANTED

Bodypart did not match the owner's default bodypart limb_id when surgically implanted

BODYPART_PSEUDOPART

Bodypart is a pseudopart (like a chainsaw arm)

BODYPART_UNHUSKABLE

Bodypart never displays as a husk

BODYPART_UNREMOVABLE

Bodypart cannot be dismembered or amputated

BP_BLOCK_CHANGE_SPECIES

Bodypart does not get replaced during set_species()

HEAD_ALL_FEATURES

All head flags, default for most heads

HEAD_DEBRAIN

Head can have debrain overlay

HEAD_EYECOLOR

Head will have colored eye sprites

HEAD_EYEHOLES

Head can have eyeholes when missing eyes

HEAD_EYESPRITES

Head can have eye sprites

HEAD_FACIAL_HAIR

Head can have facial hair

HEAD_HAIR

Head can have hair

HEAD_LIPS

Head can have lips

IS_IN_INVALID_SURGICAL_POSITION

Return true if target is not in a valid body position for the surgery

IS_ORGANIC_LIMB

Helper to figure out if a limb is organic

IS_ORGANIC_ORGAN

Helper to figure out if an organ is organic

IS_ROBOTIC_LIMB

Helper to figure out if a limb is robotic

IS_ROBOTIC_ORGAN

Helper to figure out if an organ is robotic

ORGAN_EDIBLE

Can be eaten

ORGAN_EMP

Synthetic organ affected by an EMP. Deteriorates over time.

ORGAN_FAILING

Failing organs perform damaging effects until replaced or fixed, and typically they don't function properly either

ORGAN_FROZEN

Frozen organs, don't deteriorate

ORGAN_HIDDEN

Can't be seen by scanners, doesn't anger body purists

ORGAN_MINERAL

Mineral organs. Snowflakey.

ORGAN_ORGANIC

Organic organs, the default. Don't get affected by EMPs.

ORGAN_ROBOTIC

Synthetic organs, or cybernetic organs. Reacts to EMPs and don't deteriorate or heal

ORGAN_UNREMOVABLE

Can't be removed using surgery or other common means

ORGAN_VIRGIN

Has the organ already been inserted inside someone

ORGAN_VITAL

Currently only the brain - Removing this organ KILLS the owner

SURGERY_IGNORE_CLOTHES

Will allow the surgery to bypass clothes

SURGERY_MORBID_CURIOSITY

Will grant a bonus during surgery steps to users with TRAIT_MORBID while they're using tools with CRUEL_IMPLEMENT

SURGERY_REQUIRES_REAL_LIMB

Will allow the surgery to work only if there's a real (eg. not pseudopart) limb.

SURGERY_REQUIRE_LIMB

Will allow the surgery to work only if there's a limb.

SURGERY_REQUIRE_RESTING

Will allow the surgery to work on mobs that aren't lying down.

SURGERY_SELF_OPERABLE

Will allow the surgery to be performed by the user on themselves.

SURGERY_STEP_FAIL

Return value when the surgery step fails :(