Add optional default description for triggers

This commit is contained in:
Wuzzy
2016-08-30 14:08:19 +02:00
committed by rubenwardy
parent 67946bf0c4
commit 13eb5dcdae
2 changed files with 68 additions and 9 deletions

View File

@ -140,6 +140,11 @@ function awards.register_achievement(name, def)
-- Add Award
awards.def[name] = def
local tdef = awards.def[name]
if def.description == nil and tdef.getDefaultDescription then
def.description = tdef:getDefaultDescription()
end
end
function awards.enable(name)