Shiptest 13 - Modules - TypesVar Details

surgery_step

Vars

accept_any_itemDoes the surgery step accept any item? If true, ignores implements. Compatible with require_hand.
accept_handDoes the surgery step require an open hand? If true, ignores implements. Compatible with accept_any_item.
chems_neededList 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_givenThe amount of experience given for successfully completing the step.
failure_soundSound played if the step fails
implement_typeThe current type of implement used. This has to be stored, as the actual typepath of the tool may not match the list type.
implementsWhat tools can be used in this surgery, format is path = probability of success.
preop_soundSound played when the step is started
repeatableCan 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_chemsIf chems_needed requires all chems in the list or one chem in the list.
success_soundSound played if the step succeeded
timeHow long does the step take?

Var Details

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?