summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-04 17:43:44 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-04 17:43:44 +0100
commit72cc346c35d3610c2367d7dbb02e130ac8a96411 (patch)
tree2856e0f6e66c3c169c385888d3411ee1436560df /api.lua
parent5de9dcb7976f1c581601ab876d6bf3087991c4f6 (diff)
Rename awards.def to awards.registered_awards
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/api.lua b/api.lua
index fd4b2dc..73182db 100644
--- a/api.lua
+++ b/api.lua
@@ -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