1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-11 20:41:10 +00:00

Updated buyable documentation and added buyablesOwned

This commit is contained in:
Acamaeda 2020-10-11 15:09:30 -04:00
parent e9105e9865
commit 61788c6bdd
4 changed files with 16 additions and 5 deletions

View file

@ -252,6 +252,14 @@ function hasChall(layer, id){
return (player[layer].challs.includes(toNumber(id)) || player[layer].challs.includes(id.toString()))
}
function buyablesOwned(layer, id){
return (player[layer].buyables[id])
}
function clickableState(layer, id){
return (player[layer].clickables[id])
}
function upgEffect(layer, id){
return (tmp[layer].upgrades[id].effect)
}