Space Station 13 - Modules - TypesVar Details - Proc Details

upgrade

Vars

items_to_addA list of items to add, rather than replace
items_to_replaceA list of items, and their replacements that this upgrade should replace on installation, in the format of item_type_to_replace = replacement_item_type.
module_typeThe type of module this upgrade is compatible with: Engineering, Medical, etc.
require_moduleWhether or not the cyborg needs to have a chosen module before they can recieve this upgrade.
special_rechargablesA list of replacement items will need to be placed into a cyborg module's special_rechargable list after this upgrade is installed.

Procs

actionCalled when someone clicks on a borg with an upgrade in their hand.
after_installExecutes code after the module has been installed and the cyborg has been modified in some way.
do_installExecutes code that will modify the cyborg or its module.
pre_install_checksChecks if the upgrade is able to be applied to the cyborg, before actually applying it.

Var Details

items_to_add

A list of items to add, rather than replace

items_to_replace

A list of items, and their replacements that this upgrade should replace on installation, in the format of item_type_to_replace = replacement_item_type.

module_type

The type of module this upgrade is compatible with: Engineering, Medical, etc.

require_module

Whether or not the cyborg needs to have a chosen module before they can recieve this upgrade.

special_rechargables

A list of replacement items will need to be placed into a cyborg module's special_rechargable list after this upgrade is installed.

Proc Details

action

Called when someone clicks on a borg with an upgrade in their hand.

Arguments:

after_install

Executes code after the module has been installed and the cyborg has been modified in some way.

Arguments:

do_install

Executes code that will modify the cyborg or its module.

Arguments:

pre_install_checks

Checks if the upgrade is able to be applied to the cyborg, before actually applying it.

Arguments: