surgery

Vars | |
desc | The description of the surgery, what it does. |
---|---|
location | The bodypart this specific surgery is being performed on. |
name | The name of the surgery operation |
operated_bodypart | The specific bodypart being operated on. |
operated_wound | The wound datum that is being operated on. |
organ_to_manipulate | Organ being directly manipulated, used for checking if the organ is still in the body after surgery has begun |
possible_locs | The possible bodyparts that the surgery can be started on. |
replaced_by | typepath of a surgery that will, once researched, replace this surgery in the operating menu. |
requires_bodypart_type | The types of bodyparts that this surgery can have performed on it. Used for augmented surgeries. |
requires_tech | Whether the surgery requires research to do. You need to add a design if using this! |
speed_modifier | The speed modifier given to the surgery through external means. |
status | The surgery step we're currently on, increases each time we do a step. |
step_in_progress | Boolean on whether a surgery step is currently being done, to prevent multi-surgery. |
steps | All steps the surgery has to do to complete. |
surgery_flags | From __DEFINES/surgery.dm Selection: SURGERY_IGNORE_CLOTHES | SURGERY_SELF_OPERABLE | SURGERY_REQUIRE_RESTING | SURGERY_REQUIRE_LIMB | SURGERY_REQUIRES_REAL_LIMB | SURGERY_MORBID_CURIOSITY |
target | The person the surgery is being performed on. Funnily enough, it isn't always a carbon. |
target_mobtypes | Mobs that are valid to have surgery performed on them. |
targetable_wound | Types of wounds this surgery can target. |
Procs | |
locate_operating_computer | Returns a nearby operating computer linked to an operating table |
Var Details
desc

The description of the surgery, what it does.
location

The bodypart this specific surgery is being performed on.
name

The name of the surgery operation
operated_bodypart

The specific bodypart being operated on.
operated_wound

The wound datum that is being operated on.
organ_to_manipulate

Organ being directly manipulated, used for checking if the organ is still in the body after surgery has begun
possible_locs

The possible bodyparts that the surgery can be started on.
replaced_by

typepath of a surgery that will, once researched, replace this surgery in the operating menu.
requires_bodypart_type

The types of bodyparts that this surgery can have performed on it. Used for augmented surgeries.
requires_tech

Whether the surgery requires research to do. You need to add a design if using this!
speed_modifier

The speed modifier given to the surgery through external means.
status

The surgery step we're currently on, increases each time we do a step.
step_in_progress

Boolean on whether a surgery step is currently being done, to prevent multi-surgery.
steps

All steps the surgery has to do to complete.
surgery_flags

From __DEFINES/surgery.dm Selection: SURGERY_IGNORE_CLOTHES | SURGERY_SELF_OPERABLE | SURGERY_REQUIRE_RESTING | SURGERY_REQUIRE_LIMB | SURGERY_REQUIRES_REAL_LIMB | SURGERY_MORBID_CURIOSITY
target

The person the surgery is being performed on. Funnily enough, it isn't always a carbon.
target_mobtypes

Mobs that are valid to have surgery performed on them.
targetable_wound

Types of wounds this surgery can target.
Proc Details
locate_operating_computer
Returns a nearby operating computer linked to an operating table