summaryrefslogtreecommitdiff
path: root/gui.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-05 17:00:41 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-05 17:00:48 +0100
commite110bbbc7a8dea47b9ed536fcd31dc21169c6bd6 (patch)
tree841cf9f4087ce61619fb698ba627dcaf69ab4b8a /gui.lua
parent2f49d895ed9b9bea22e8937a4396560e2941d6de (diff)
Add award unlock requirements
Fixes #52
Diffstat (limited to 'gui.lua')
-rw-r--r--gui.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.lua b/gui.lua
index 198fa5a..9488eee 100644
--- a/gui.lua
+++ b/gui.lua
@@ -28,7 +28,7 @@ local function order_awards(name)
end
for _, def in pairs(awards.registered_awards) do
- if not hash_is_unlocked[def.name] then
+ if not hash_is_unlocked[def.name] and def:can_unlock(data) then
local started = false
local score
if def.secret then