From d1da81c1f8a28396d131c71bd4920de9707505e4 Mon Sep 17 00:00:00 2001 From: Braeden Date: Sun, 27 Oct 2024 17:14:49 -0400 Subject: [PATCH] chore: Better Achievement Displays --- js/technical/displays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/technical/displays.js b/js/technical/displays.js index 28c8cff..ba5a086 100644 --- a/js/technical/displays.js +++ b/js/technical/displays.js @@ -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 }