upgrade  
| Vars | |
| 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_rechargablelist after this upgrade is installed. | 
| Procs | |
| action | Called when someone clicks on a borg with an upgrade in their hand. | 
| after_install | Executes code after the module has been installed and the cyborg has been modified in some way. | 
| do_install | Executes code that will modify the cyborg or its module. | 
| pre_install_checks | Checks 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:
- R - the cyborg that was clicked on with an upgrade.
after_install
Executes code after the module has been installed and the cyborg has been modified in some way.
Arguments:
- R - the cyborg that we've applied the upgrade to.
do_install
Executes code that will modify the cyborg or its module.
Arguments:
- R - the cyborg we're applying the upgrade to.
pre_install_checks
Checks if the upgrade is able to be applied to the cyborg, before actually applying it.
Arguments:
- R - the cyborg that was clicked on with an upgrade.