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 | 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
![code/modules/surgery/surgery.dm 5](git.png)
The description of the surgery, what it does.
location
![code/modules/surgery/surgery.dm 18](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 27](git.png)
The specific bodypart being operated on.
operated_wound
![code/modules/surgery/surgery.dm 29](git.png)
The wound datum that is being operated on.
organ_to_manipulate
![code/modules/surgery/surgery.dm 45](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 20](git.png)
The possible bodyparts that the surgery can be started on.
replaced_by
![code/modules/surgery/surgery.dm 41](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 34](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 39](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 37](git.png)
The speed modifier given to the surgery through external means.
status
![code/modules/surgery/surgery.dm 11](git.png)
The surgery step we're currently on, increases each time we do a step.
step_in_progress
![code/modules/surgery/surgery.dm 15](git.png)
Boolean on whether a surgery step is currently being done, to prevent multi-surgery.
steps
![code/modules/surgery/surgery.dm 13](git.png)
All steps the surgery has to do to complete.
surgery_flags
![code/modules/surgery/surgery.dm 9](git.png)
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
![code/modules/surgery/surgery.dm 25](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 22](git.png)
Mobs that are valid to have surgery performed on them.
targetable_wound
![code/modules/surgery/surgery.dm 32](git.png)
Types of wounds this surgery can target.
Proc Details
locate_operating_computer
Returns a nearby operating computer linked to an operating table