mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-04-24 02:01:03 +00:00
Achievements
This commit is contained in:
parent
d9d2f777a7
commit
923f096aa0
12 changed files with 173 additions and 14 deletions
|
@ -52,6 +52,16 @@ function updateLayers(){
|
|||
}
|
||||
}
|
||||
}
|
||||
if (layers[layer].achievements){
|
||||
for (thing in layers[layer].achievements){
|
||||
if (!isNaN(thing)){
|
||||
layers[layer].achievements[thing].id = thing
|
||||
layers[layer].achievements[thing].layer = layer
|
||||
if (layers[layer].achievements[thing].unlocked === undefined)
|
||||
layers[layer].achievements[thing].unlocked = true
|
||||
}
|
||||
}
|
||||
}
|
||||
if (layers[layer].challenges){
|
||||
for (thing in layers[layer].challenges){
|
||||
if (!isNaN(thing)){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue