diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-04-17 22:25:53 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-04-17 22:25:53 +0100 |
commit | f0052386c8f70857a2dfdb3f1c8de229f89e4cb5 (patch) | |
tree | dd48c1c165229c32db2732ed19ddc16e55985b77 /gui.lua | |
parent | 08f654cf949a395c1745b779687469870f3d40ab (diff) |
Add award difficulty multipler
Diffstat (limited to 'gui.lua')
-rw-r--r-- | gui.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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, |