%%---------------------------------------------------- %% 共鸣石碑 %% %% @author liufenglin 240039421@qq.com %%---------------------------------------------------- -module(resonate_data). -export([cfg/0]). -include("data_config.hrl"). cfg() -> #data_cfg{ name = resonate_data ,lua_name = resonate_data ,desc = "共鸣石碑" ,splitv = 2 ,source = "resonate_data.xml" ,target = "resonate_data.erl" ,inc = ["common.hrl"] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{get_all_pos, cb_fun, handle, {list, ["石碑配置"]}} ,{get_pos_cond, cb_fun, handle, {get_tuple, ["石碑配置"], pos, pos_cond}} ,{get_lev_expend, cb_fun, handle, {get_tuple, ["石碑升级配置"], lev, expend}} ,{{get_lev_attr, "[]"}, cb_fun, handle, {get_tuple, ["石碑升级配置"], lev, attr}} ,{get_max_lev, cb_fun, handle, {get_max, ["石碑升级配置"], lev}} ,{{get_star_rio, "0"}, cb_fun, handle, {get_tuple, ["总星级加成属性"], star, rio}} ,{{get_extract_limit_num, "0"}, cb_fun, handle, {get_tuple, ["石碑升级配置"], lev, limit_num}} ,{{get_extract_need_time, "3600"}, cb_fun, handle, {get_tuple, ["石碑升级配置"], lev, need_time}} ,{get_star_resonate_loss, cb_fun, handle, {get_tuple, ["赋能消耗配置"], star, [loss1, loss2]}} ,{get_unlock_expend, cb_fun, handle, {get_tuple, ["解锁共鸣槽位消耗配置"], count, [loss1, loss2]}} ,{get_cystal_lev_expend, cb_fun, handle, {get_tuple, ["升级水晶消耗配置"], lev, expend}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量配置"], [key], [val,desc]}} ,{pos_info, cb_fun_lua, handle, {key_val, ["石碑配置"], [pos], all}} ,{level_up, cb_fun_lua, handle, {val_str, ["石碑升级配置"], [lev], all}} ,{star_attr, cb_fun_lua, handle, {val_str, ["总星级加成属性"], [star], all}} ,{star_cost, cb_fun_lua, handle, {key_val, ["赋能消耗配置"], [star], all}} ,{cell_cost, cb_fun_lua, handle, {key_val, ["解锁共鸣槽位消耗配置"], [count], all}} ,{crystal_cost, cb_fun_lua, handle, {key_val, ["升级水晶消耗配置"], [lev], all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量配置"], [key], [val,desc]}} ,{pos_info, cb_fun_json, handle, {key_val, ["石碑配置"], [pos], all}} ,{level_up, cb_fun_json, handle, {val_str, ["石碑升级配置"], [lev], all}} ,{star_attr, cb_fun_json, handle, {val_str, ["总星级加成属性"], [star], all}} ,{star_cost, cb_fun_json, handle, {key_val, ["赋能消耗配置"], [star], all}} ,{cell_cost, cb_fun_json, handle, {key_val, ["解锁共鸣槽位消耗配置"], [count], all}} ,{crystal_cost, cb_fun_json, handle, {key_val, ["升级水晶消耗配置"], [lev], all}} ] ,sheet = [ {["石碑配置"],[ #f_column{type = int, name = pos, desc = "槽位序号", mod = all} ,#f_column{type = term, name = pos_cond, desc = "开启条件", mod = all} ]} ,{["石碑升级配置"],[ #f_column{type = int, name = lev, desc = "石碑等级", mod = all} ,#f_column{type = term, name = expend, desc = "升级消耗", mod = all} ,#f_column{type = term, name = attr, desc = "属性加成", mod = all} ,#f_column{type = int, name = limit_num, desc = "提炼上限", mod = all} ,#f_column{type = int, name = need_time, desc = "单个材料提炼时间(秒)", mod = all} ]} ,{["总星级加成属性"],[ #f_column{type = int, name = star, desc = "总星级", mod = all} ,#f_column{type = int, name = rio, desc = "加成值", mod = all} ]} ,{["常量配置"],[ #f_column{type = term, name = key, desc = "常量标识", add_list_sign = false,mod = all} ,#f_column{type = term, name = val, desc = "常量值", add_list_sign = false,mod= all} ,#f_column{type = bstr, name = desc, desc = "描述", mod = client} ]} ,{["赋能消耗配置"],[ #f_column{type = int, name = star, desc = "目标星级", mod = all} ,#f_column{type = term, name = loss1, desc = "赋能特殊消耗", add_list_sign = false, mod = all} ,#f_column{type = term, name = loss2, desc = "赋能普通消耗", add_list_sign = false, mod = all} ]} ,{["解锁共鸣槽位消耗配置"],[ #f_column{type = int, name = count, desc = "次数", mod = all} ,#f_column{type = term, name = loss1, desc = "道具消耗", mod = all} ,#f_column{type = term, name = loss2, desc = "钻石消耗", mod = all} ]} ,{["升级水晶消耗配置"],[ #f_column{type = int, name = lev, desc = "等级", mod = all} ,#f_column{type = term, name = expend, desc = "消耗", mod = all} ]} ] }.