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:
parent
18898f519e
commit
e9d0f17d41
5 changed files with 20 additions and 18 deletions
js
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue