surgery_step
![code/modules/surgery/surgery_step.dm 1](git.png)
Vars | |
accept_any_item | Does the surgery step accept any item? If true, ignores implements. Compatible with require_hand. |
---|---|
accept_hand | Does the surgery step require an open hand? If true, ignores implements. Compatible with accept_any_item. |
chems_needed | List of chems needed to complete the step. Even on success, the step will have no effect if there aren't the chems required in the mob. Use require_all_chems to specify if its any on the list or all on the list |
experience_given | The amount of experience given for successfully completing the step. |
failure_sound | Sound played if the step fails |
implement_type | The current type of implement used. This has to be stored, as the actual typepath of the tool may not match the list type. |
implements | What tools can be used in this surgery, format is path = probability of success. |
preop_sound | Sound played when the step is started |
repeatable | Can this step be repeated? Make sure it isn't last step, or it used in surgery with can_cancel = 1 . Or surgion will be stuck in the loop |
require_all_chems | If chems_needed requires all chems in the list or one chem in the list. |
success_sound | Sound played if the step succeeded |
time | How long does the step take? |
Var Details
accept_any_item
![code/modules/surgery/surgery_step.dm 10](git.png)
Does the surgery step accept any item? If true, ignores implements. Compatible with require_hand.
accept_hand
![code/modules/surgery/surgery_step.dm 8](git.png)
Does the surgery step require an open hand? If true, ignores implements. Compatible with accept_any_item.
chems_needed
![code/modules/surgery/surgery_step.dm 16](git.png)
List of chems needed to complete the step. Even on success, the step will have no effect if there aren't the chems required in the mob. Use require_all_chems to specify if its any on the list or all on the list
experience_given
![code/modules/surgery/surgery_step.dm 27](git.png)
The amount of experience given for successfully completing the step.
failure_sound
![code/modules/surgery/surgery_step.dm 25](git.png)
Sound played if the step fails
implement_type
![code/modules/surgery/surgery_step.dm 6](git.png)
The current type of implement used. This has to be stored, as the actual typepath of the tool may not match the list type.
implements
![code/modules/surgery/surgery_step.dm 4](git.png)
What tools can be used in this surgery, format is path = probability of success.
preop_sound
![code/modules/surgery/surgery_step.dm 21](git.png)
Sound played when the step is started
repeatable
![code/modules/surgery/surgery_step.dm 14](git.png)
Can this step be repeated? Make sure it isn't last step, or it used in surgery with can_cancel = 1
. Or surgion will be stuck in the loop
require_all_chems
![code/modules/surgery/surgery_step.dm 18](git.png)
If chems_needed requires all chems in the list or one chem in the list.
success_sound
![code/modules/surgery/surgery_step.dm 23](git.png)
Sound played if the step succeeded
time
![code/modules/surgery/surgery_step.dm 12](git.png)
How long does the step take?