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.
28 lines
575 B
Lua
28 lines
575 B
Lua
local fundconf = require "fundconf"
|
|
local fundtaskconf = require "fundtaskconf"
|
|
local itemidconf = require "itemidconf"
|
|
|
|
local M = {}
|
|
|
|
function M.getconf(id)
|
|
return fundconf[tostring(math.floor(id))]
|
|
end
|
|
|
|
function M.gettaskconf(id)
|
|
return fundtaskconf[tostring(math.floor(id))]
|
|
end
|
|
|
|
function M.getitemidconf(id)
|
|
return itemidconf[tostring(math.floor(id))]
|
|
end
|
|
|
|
function M.getfundreward(id)
|
|
local rewards = {}
|
|
local rews = M.gettaskconf(id).rewards
|
|
for _, v in ipairs(rews) do
|
|
table.insert(rewards, v)
|
|
end
|
|
return rewards
|
|
end
|
|
|
|
return M |