Space Station 13 - Modules - TypesVar Details - Proc Details

upgrade

Vars

allow_duplicateAllow the same upgrade to be installed multiple times, FALSE by default
delete_after_installDelete the module after installing it. For deleting upgrades that might be installed multiple times, like the rename/reset upgrades.
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 receive 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

allow_duplicate

Allow the same upgrade to be installed multiple times, FALSE by default

delete_after_install

Delete the module after installing it. For deleting upgrades that might be installed multiple times, like the rename/reset upgrades.

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 receive 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: