%%---------------------------------------------------- %% 数据配置文件 %% @author liufenglin 240039421@qq.com %%---------------------------------------------------- -module(hallows_refine_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = hallows_refine_data ,lua_name = hallows_refine_data ,desc = "礼包配置数据" ,source = "hallows_refine_data.xml" ,target = "hallows_refine_data.erl" ,inc = ["common.hrl"] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{get_need_lev, cb_fun, handle, {get_tuple, ["精炼信息"], [id, lev], need_lev}} ,{get_expend, cb_fun, handle, {get_tuple, ["精炼信息"], [id, lev], expend}} ,{{get_add_dps, "0"}, cb_fun, handle, {get_tuple, ["精炼信息"], [id, lev], add_dps}} ,{get_max_lev, cb_fun, handle, {tuple_type, ["精炼信息"], id, lev}} ,{{get_decompose_award, "[]"}, cb_fun, handle, {get_tuple, ["精炼信息"], [id, lev], decompose_award}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{refine, cb_fun_lua, handle, {type_get_val, ["精炼信息"], [id, lev], all}} ,{max_lev, cb_fun_lua, handle, {type_get_max, [ "精炼信息"], [id], lev}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{refine, cb_fun_json, handle, {type_get_val, ["精炼信息"], [id, lev], all}} ,{max_lev, cb_fun_json, handle, {type_get_max, [ "精炼信息"], [id], lev}} ] ,sheet = [ {["常量配置"], [ #f_column{desc = "键", type = atom, name = key, primary = true, mod = all} ,#f_column{desc = "值", type = term, name = val, add_list_sign = false, mod = all} ,#f_column{desc = "描述", type = str, name = desc, mod = all} ]} ,{["精炼信息"], [ #f_column{type = int, name = id, desc = "神器ID", mod = all} ,#f_column{type = int, name = lev, desc = "精炼等级", mod = all} ,#f_column{type = int, name = need_lev, desc = "所需强化等级", mod = all} ,#f_column{type = term, name = expend, desc = "消耗", mod = all} ,#f_column{type = int, name = add_dps, desc = "伤害增加", mod = all} ,#f_column{type = term, name = decompose_award, desc = "重铸返还", mod = all} ]} ] }.