1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-10 12:01:32 +00:00

addBuyables

This commit is contained in:
Harley White 2021-06-02 17:02:46 -04:00
parent 247ad64c58
commit d1c00d681e
3 changed files with 6 additions and 0 deletions

View file

@ -30,6 +30,10 @@ function setBuyableAmount(layer, id, amt) {
player[layer].buyables[id] = amt
}
function addBuyables(layer, id, amt) {
player[layer].buyables[id] = player[layer].buyables[id].add(amt)
}
function getClickableState(layer, id) {
return (player[layer].clickables[id])
}