Buyables

Buyables are buttons which their purpose is to grant a bonus based on their amount and either increase or stay constant price. Their use is mainly for cases where you'd like 'upgrades' that can bought multiple times, but they are flexible enough for creators to implement anything, including but not limited to researching systems or castable spells, although those uses are recommended to be implemented with clickables instead. The difference between buyables and clickables is that clickables' purposes are more of clicking several times, and buyables instead are meant to be bought a few times.

Main object
All buyables of a layer are stored in an object, with  and   are the number of rows and column of the buyable grid, and each upgrade is also an object with the ID determines the position of it in the buyable 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:


 * : Gets the amount of the buyable the player has.
 * : Sets the amount of the buyable the player has.
 * : Returns the current effects of the buyable, if any.

Features
These features can be applied to each of the buyable objects: