mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-05-12 04:51:06 +00:00
addBuyables
This commit is contained in:
parent
247ad64c58
commit
d1c00d681e
3 changed files with 6 additions and 0 deletions
docs
|
@ -7,6 +7,7 @@ The amount of a buyable owned is a `Decimal`.
|
|||
Useful functions for dealing with buyables and implementing their effects:
|
||||
|
||||
- getBuyableAmount(layer, id): get the amount of the buyable the player has
|
||||
- addBuyables(layer, id, amount): add to the amount of the buyable
|
||||
- setBuyableAmount(layer, id, amount): set the amount of the buyable the player has
|
||||
- buyableEffect(layer, id): Returns the current effects of the buyable, if any.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue