new Upgrade(name, desc, price, icon, hide, buyFunctionnullable)
Upgrade class
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name | string | Name of Upgrade | |
desc | string | Description of Upgrade | |
price | number | Price of Upgrade | |
icon | string | Path to icon image | |
hide | number | 0=show, 3=hide (1-2 : I have no idea) | |
buyFunction | function | <nullable> | Custom buy function |
- Source
Methods
UpdateLocale() → {void}
Updates localization for Upgrade
- Source
Returns:
- Type:
- void
buy() → {void}
Buies the Upgrade
- Source
Returns:
- Type:
- void
getPrice() → {number}
Returns price of Upgrade
- Source
Returns:
- Type:
- number
toggle() → {void}
Cheating only
- Source
Returns:
- Type:
- void