diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-04-04 17:43:44 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-04-04 17:43:44 +0100 |
commit | 72cc346c35d3610c2367d7dbb02e130ac8a96411 (patch) | |
tree | 2856e0f6e66c3c169c385888d3411ee1436560df /api.lua | |
parent | 5de9dcb7976f1c581601ab876d6bf3087991c4f6 (diff) |
Rename awards.def to awards.registered_awards
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,7 +16,7 @@ local S, NS = awards.gettext, awards.ngettext -awards.def = {} +awards.registered_awards = {} awards.on = {} awards.on_unlock = {} @@ -205,9 +205,9 @@ function awards.register_achievement(name, def) end -- Add Award - awards.def[name] = def + awards.registered_awards[name] = def - local tdef = awards.def[name] + local tdef = awards.registered_awards[name] if def.description == nil and tdef.getDefaultDescription then def.description = tdef:getDefaultDescription() end @@ -241,7 +241,7 @@ end function awards.unlock(name, award) -- Access Player Data local data = awards.player(name) - local awdef = awards.def[award] + local awdef = awards.registered_awards[award] assert(awdef, "Unable to unlock an award which doesn't exist!") if data.disabled or |