1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-17 03:01:08 +00:00

Made point generation make sense

This commit is contained in:
Acamaeda 2020-10-11 18:38:54 -04:00
parent 18898f519e
commit e9d0f17d41
5 changed files with 20 additions and 18 deletions

View file

@ -477,6 +477,15 @@ function clickClickable(layer, id) {
updateClickableTemp(layer)
}
// Function to determine if the player is in a challenge
function inChallenge(layer, id){
let chall = player[layer].active
if (chall==toNumber(id)) return true
if (layers[layer].challs[chall].countsAs)
return layers[layer].challs[id].countsAs.includes(id)
}
// ************ Misc ************
var onTreeTab = true