summaryrefslogtreecommitdiff
path: root/gui.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gui.lua')
-rw-r--r--gui.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui.lua b/gui.lua
index 374217b..21d0d37 100644
--- a/gui.lua
+++ b/gui.lua
@@ -13,9 +13,13 @@ local function order_awards(name)
if def then
hash_is_unlocked[awardname] = true
local score = -100000
+
+ local difficulty = def.difficulty or 1
if def.trigger and def.trigger.target then
- score = score + def.trigger.target
+ difficulty = difficulty * def.trigger.target
end
+ score = score + difficulty
+
retval[#retval + 1] = {
name = awardname,
def = def,