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:
parent
247ad64c58
commit
d1c00d681e
3 changed files with 6 additions and 0 deletions
js/utils
|
@ -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])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue