You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
552 B
Lua

local achievementconf = require "achievementconf"
local achievementtasklist = require "achievementtasklist"
local M = {}
function M.getconf()
return achievementconf
end
function M.gettaskconfbyid(id)
return achievementtasklist[tostring(id)]
end
function M.gettask(achievement_id, taskid)
achievement_id = checkint(achievement_id)
taskid = checkint(taskid)
for k,v in pairs(achievementtasklist) do
if checkint(k) == taskid and v.achievement_id == achievement_id then
return v
end
end
end
return M