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.

31 lines
677 B
Lua

local towerconf = require "towerconf"
local towerreward = require "towerreward"
local itemidconf = require "itemidconf"
local M = {}
function M.getitemidconf(id)
return itemidconf[tostring(id)]
end
function M.getrewards(id)
local rewards = {}
local params = towerconf[tostring(id)].bossrewards
for _, v in ipairs(params) do
table.insert(rewards, {key=v.key, value=v.value})
end
return rewards
end
function M.getboxrewards(id)
local rewards = {}
local params = towerreward[tostring(id)].towerrewards
for _, v in ipairs(params) do
table.insert(rewards, {key=v.key, value=v.value})
end
return rewards
end
return M