Upgrades

Upgrades are one-time purchases that players can buy to increase the productivity of certain things in the game and/or unlock new hidden mechanics. Upgrades are usually arranged in a grid, but creators can customize the position of them with the use of custom layouts.

Main object
All upgrades of a layer are stored in an object, with  and   are the number of rows and column of the upgrade grid, and each upgrade is also an object with the ID determines the position of it in the upgrade grid, where the first digit is the row and the second digit is the column:

Built-in functions
TMT also includes some built-in functions for use:


 * : Determines if the player has the upgrade
 * : Returns the current effects of the upgrade, if any
 * : Buys an upgrade directly (if affordable)

Features
These features can be added to individual upgrade objects: