surgery ![code/modules/surgery/surgery.dm 1](git.png)
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 | 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. |
Procs | |
locate_operating_computer | Returns a nearby operating computer linked to an operating table |
Var Details
desc ![code/modules/surgery/surgery.dm 5](git.png)
The description of the surgery, what it does.
location ![code/modules/surgery/surgery.dm 17](git.png)
The bodypart this specific surgery is being performed on.
name ![code/modules/surgery/surgery.dm 3](git.png)
The name of the surgery operation
operated_bodypart ![code/modules/surgery/surgery.dm 26](git.png)
The specific bodypart being operated on.
operated_wound ![code/modules/surgery/surgery.dm 28](git.png)
The wound datum that is being operated on.
organ_to_manipulate ![code/modules/surgery/surgery.dm 44](git.png)
Organ being directly manipulated, used for checking if the organ is still in the body after surgery has begun
possible_locs ![code/modules/surgery/surgery.dm 19](git.png)
The possible bodyparts that the surgery can be started on.
replaced_by ![code/modules/surgery/surgery.dm 40](git.png)
typepath of a surgery that will, once researched, replace this surgery in the operating menu.
requires_bodypart_type ![code/modules/surgery/surgery.dm 33](git.png)
The types of bodyparts that this surgery can have performed on it. Used for augmented surgeries.
requires_tech ![code/modules/surgery/surgery.dm 38](git.png)
Whether the surgery requires research to do. You need to add a design if using this!
speed_modifier ![code/modules/surgery/surgery.dm 36](git.png)
The speed modifier given to the surgery through external means.
status ![code/modules/surgery/surgery.dm 10](git.png)
The surgery step we're currently on, increases each time we do a step.
step_in_progress ![code/modules/surgery/surgery.dm 14](git.png)
Boolean on whether a surgery step is currently being done, to prevent multi-surgery.
steps ![code/modules/surgery/surgery.dm 12](git.png)
All steps the surgery has to do to complete.
surgery_flags ![code/modules/surgery/surgery.dm 8](git.png)
Bitfield for flags that determine different behaviors and requirement for the surgery. See __DEFINES/surgery.dm
target ![code/modules/surgery/surgery.dm 24](git.png)
The person the surgery is being performed on. Funnily enough, it isn't always a carbon.
target_mobtypes ![code/modules/surgery/surgery.dm 21](git.png)
Mobs that are valid to have surgery performed on them.
targetable_wound ![code/modules/surgery/surgery.dm 31](git.png)
Types of wounds this surgery can target.
Proc Details
locate_operating_computer
Returns a nearby operating computer linked to an operating table