1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-12-03 13:21:34 +00:00

chore: Better Achievement Displays

This commit is contained in:
Braeden 2024-10-27 17:14:49 -04:00
parent 12a1ccf66b
commit d1da81c1f8

View file

@ -42,7 +42,7 @@ function achievementStyle(layer, id){
if (ach.image){
style.push({'background-image': 'url("' + ach.image + '")'})
}
if (!ach.unlocked) style.push({'visibility': 'hidden'})
if (!hasAchievement(layer, id)) style.push({'visibility': 'hidden'})
style.push(ach.style)
return style
}