/tg/ Station 13 - Modules - TypesVar Details - Proc Details

surgery

Vars

descThe description of the surgery, what it does.
locationThe bodypart this specific surgery is being performed on.
nameThe name of the surgery operation
operated_bodypartThe specific bodypart being operated on.
operated_woundThe wound datum that is being operated on.
organ_to_manipulateOrgan being directly manipulated, used for checking if the organ is still in the body after surgery has begun
possible_locsThe possible bodyparts that the surgery can be started on.
replaced_bytypepath of a surgery that will, once researched, replace this surgery in the operating menu.
requires_bodypart_typeThe types of bodyparts that this surgery can have performed on it. Used for augmented surgeries.
requires_techWhether the surgery requires research to do. You need to add a design if using this!
speed_modifierThe speed modifier given to the surgery through external means.
statusThe surgery step we're currently on, increases each time we do a step.
step_in_progressBoolean on whether a surgery step is currently being done, to prevent multi-surgery.
stepsAll steps the surgery has to do to complete.
surgery_flagsBitfield for flags that determine different behaviors and requirement for the surgery. See __DEFINES/surgery.dm
targetThe person the surgery is being performed on. Funnily enough, it isn't always a carbon.
target_mobtypesMobs that are valid to have surgery performed on them.
targetable_woundTypes of wounds this surgery can target.

Procs

locate_operating_computerReturns 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

Bitfield for flags that determine different behaviors and requirement for the surgery. See __DEFINES/surgery.dm

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