diff options
author | Wuzzy <almikes@aol.com> | 2016-08-30 14:08:19 +0200 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2016-09-01 16:22:37 +0100 |
commit | 13eb5dcdaefebbbef3b73fe5350752ed89e19a3f (patch) | |
tree | f474b4f629fb1cd1744dffeccc84a69872e7cad8 /api.lua | |
parent | 67946bf0c4767284fa3d557d5fed6104f7bec904 (diff) |
Add optional default description for triggers
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |