Add award unlock requirements

Fixes #52
This commit is contained in:
rubenwardy
2018-04-05 17:00:41 +01:00
parent 2f49d895ed
commit e110bbbc7a
3 changed files with 43 additions and 20 deletions

View File

@ -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