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.
|
local battleconf = require "battleconf"
|
|
|
|
local M = {}
|
|
|
|
function M.getconf(level)
|
|
return battleconf[tostring(math.floor(level))]
|
|
end
|
|
|
|
function M.getwavecoin(level)
|
|
local cfg = M.getconf(level)
|
|
return cfg.coin_wave*#cfg.monsters
|
|
end
|
|
|
|
return M |