Make secret awards darker in list + other tweaks

This commit is contained in:
Wuzzy 2016-08-01 20:13:49 +02:00 committed by rubenwardy
parent 9308b95163
commit 49f251136e

View File

@ -308,10 +308,10 @@ function awards.getFormspec(name, to, sid)
local item = listofawards[sid+0] local item = listofawards[sid+0]
local def = awards.def[item.name] local def = awards.def[item.name]
if def and def.secret and not item.got then if def and def.secret and not item.got then
formspec = formspec .. "label[1,2.75;Secret Award]".. formspec = formspec .. "label[1,2.75;(Secret Award)]"..
"image[1,0;3,3;awards_unknown.png]" "image[1,0;3,3;awards_unknown.png]"
if def and def.description then if def and def.description then
formspec = formspec .. "label[0,3.25;Unlock this award to find out what it is]" formspec = formspec .. "label[0,3.25;Unlock this award to find out what it is.]"
end end
else else
local title = item.name local title = item.name
@ -362,7 +362,7 @@ function awards.getFormspec(name, to, sid)
first = false first = false
if def.secret and not award.got then if def.secret and not award.got then
formspec = formspec .. "#ACACACSecret Award" formspec = formspec .. "#707070(Secret Award)"
else else
local title = award.name local title = award.name
if def and def.title then if def and def.title then