%%---------------------------------------------------- %% "伙伴神器" %% %% @author liufenglin 240039421@qq.com %%---------------------------------------------------- -module(partner_artifact_data). -author("Administrator"). -include("common.hrl"). -include("data_config.hrl"). %% API -export([cfg/0]). cfg() -> #data_cfg{ name = partner_artifact_data ,lua_name = partner_artifact_data ,desc = "伙伴装备配置数据" ,source = "partner_artifact_data.xml" ,target = "partner_artifact_data.erl" ,inc = ["partner.hrl", "common.hrl", "attr.hrl"] ,callback = [ {{get_info, "undefined"}, cb_fun, handle, {get_tuple, ["神器基础"], id, [ref_expend, skill_baodi_count, attr_baodi_count]}} ,{get_com_limit_lev, cb_fun, handle, {get_tuple, ["神器基础"], id, limit_lv}} ,{get_attr_val, cb_fun, handle, {get_tuple, ["神器基础属性"], [id, attr], val}} ,{get_decompound_award, cb_fun, handle, {get_tuple, ["神器分解"], id, award}} ,{get_skill_rand_info1, cb_fun, handle, {tuple_type, ["神器重铸技能随机"], id, [rand, pro1]}} ,{get_skill_rand_info2, cb_fun, handle, {tuple_type, ["神器重铸技能随机"], id, [rand, pro2]}} ,{get_skill_rand_info3, cb_fun, handle, {tuple_type, ["神器重铸技能随机"], id, [rand, pro3]}} ,{get_skill_rand_info4, cb_fun, handle, {tuple_type, ["神器重铸技能随机"], id, [rand, pro4]}} ,{get_attr_rand_info1, cb_fun, handle, {tuple_type, ["神器重铸属性随机"], id, [rand, pro1]}} ,{get_attr_rand_info2, cb_fun, handle, {tuple_type, ["神器重铸属性随机"], id, [rand, pro2]}} ,{get_attr_rand_info3, cb_fun, handle, {tuple_type, ["神器重铸属性随机"], id, [rand, pro3]}} ,{get_skill_rands, cb_fun, handle, {tuple_type, ["技能随机库"], id, [skill_id, pro]}} ,{get_attr_rands, cb_fun, handle, {tuple_type, ["属性随机库"], id, [attr, pro]}} ,{get_compound_need_num, cb_fun, handle, {tuple_type, ["神器合成"], id, cost_num}} ,{get_compound_need_id, cb_fun, handle, {tuple_type, ["神器合成"], id, materials}} ,{get_compound_need_info, cb_fun, handle, {get_tuple, ["神器合成"], [id, cost_num], [rate, award, add_num]}} ,{get_compound_other_expend, cb_fun, handle, {get_tuple, ["神器合成"], [id, cost_num], other_expend}} ,{{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], code, val}} ] ,callback_cli = [ {artifact_const, cb_fun_lua, handle, {key_val, [ "常量"], code, [val, desc]}} ,{artifact_data, cb_fun_lua, handle, {key_val, [ "神器基础"], id, all}} ,{artifact_attr, cb_fun_lua, handle, {type_get_val, [ "神器基础属性"], [id, attr], val}} ,{artifact_attr_score, cb_fun_lua, handle, {type_get_val, [ "神器基础属性"], [id, attr], score}} ,{artifact_compound, cb_fun_lua, handle, {type_get_val, [ "神器合成"], [id, cost_num], all}} ,{artifact_resolve, cb_fun_lua, handle, {key_val, [ "神器分解"], id, award}} ,{artifact_skill, cb_fun_lua, handle, {key_val, [ "技能预览"], id, skill_list}} ] ,callback_json = [ {artifact_const, cb_fun_json, handle, {key_val, [ "常量"], code, [val, desc]}} ,{artifact_data, cb_fun_json, handle, {key_val, [ "神器基础"], id, all}} ,{artifact_attr, cb_fun_json, handle, {type_get_val, [ "神器基础属性"], [id, attr], val}} ,{artifact_attr_score, cb_fun_json, handle, {type_get_val, [ "神器基础属性"], [id, attr], score}} ,{artifact_compound, cb_fun_json, handle, {type_get_val, [ "神器合成"], [id, cost_num], all}} ,{artifact_resolve, cb_fun_json, handle, {key_val, [ "神器分解"], id, award}} ,{artifact_skill, cb_fun_json, handle, {key_val, [ "技能预览"], id, skill_list}} ] ,sheet = [ {["常量"], [ #f_column{type = atom, name = code, desc = "键", mod = all} ,#f_column{type = term, name = val, desc = "值", mod = all, add_list_sign = false} ,#f_column{type = bstr, name = desc, desc = "描述", mod = all} ]} ,{["神器基础"], [ #f_column{type = int, name = id, desc = "神器id", mod = all} ,#f_column{type = int, name = star, desc = "星级", mod = all} ,#f_column{type = int, name = attr_num, desc = "神器属性数量", mod = all} ,#f_column{type = int, name = skill_num, desc = "神器技能数量", mod = all} ,#f_column{type = term, name = ref_expend, desc = "重铸消耗", add_list_sign = false, mod = all} ,#f_column{type = int, name = com_artifact, desc = "可合成的符文", mod = client} ,#f_column{type = int, name = limit_num, desc = "合成最低需要材料数量", mod = client} ,#f_column{type = int, name = limit_lv, desc = "合成等级限制", mod = all} ,#f_column{type = int, name = skill_baodi_count, desc = "技能重铸保底次数", mod = server} ,#f_column{type = int, name = attr_baodi_count, desc = "属性重铸保底次数", mod = server} ,#f_column{type = bstr, name = arrt_desc, desc = "合成属性描述", mod = client} ,#f_column{type = bstr, name = skill_desc, desc = "合成技能描述", mod = client} ,#f_column{type = int, name = next_attr_star, desc = "下一属性解锁星级", mod = client} ,#f_column{type = int, name = next_skill_star, desc = "下一技能解锁星级", mod = client} ]} ,{["神器基础属性"], [ #f_column{type = int, name = id, desc = "神器id", mod = all} ,#f_column{type = atom, name = attr, desc = "属性", mod = all} ,#f_column{type = int, name = val, desc = "属性值", mod = all} ,#f_column{type = int, name = score, desc = "属性评分", mod = all} ]} ,{["神器合成"], [ #f_column{type = int, name = id, desc = "神器id", mod = all} ,#f_column{type = term, name = materials, desc = "合成材料", mod = all} ,#f_column{type = int, name = cost_num, desc = "合成消耗数量", mod = all} ,#f_column{type = int, name = rate, desc = "成功率", mod = all} ,#f_column{type = term, name = award, desc = "失败返还", add_list_sign = false, mod = all} ,#f_column{type = int, name = add_num, desc = "失败祝福值返还", mod = all} ,#f_column{type = term, name = other_expend, desc = "合成道具消耗", mod = all} ]} ,{["神器分解"], [ #f_column{type = int, name = id, desc = "神器id", mod = all} ,#f_column{type = term, name = award, desc = "分解获得", mod = all} ]} ,{["神器重铸技能随机"], [ #f_column{type = int, name = id, desc = "神器id", mod = all} ,#f_column{type = term, name = rand, desc = "技能库", add_list_sign = false, mod = all} ,#f_column{type = int, name = pro1, desc = "权重", val = "0", mod = all} ,#f_column{type = int, name = pro2, desc = "保底权重", val = "0", mod = all} ,#f_column{type = int, name = pro3, desc = "初始权重", val = "0", mod = all} ,#f_column{type = int, name = pro4, desc = "高级幸运权重", val = "0", mod = all} ]} ,{["神器重铸属性随机"], [ #f_column{type = int, name = id, desc = "神器id", mod = all} ,#f_column{type = term, name = rand, desc = "属性库", add_list_sign = false, mod = all} ,#f_column{type = int, name = pro1, desc = "权重", val = "0", mod = all} ,#f_column{type = int, name = pro2, desc = "保底权重", val = "0", mod = all} ,#f_column{type = int, name = pro3, desc = "初始权重", val = "0", mod = all} ]} ,{["技能随机库"], [ #f_column{type = int, name = id, desc = "随机库id", mod = server} ,#f_column{type = int, name = skill_id, desc = "技能id", mod = server} ,#f_column{type = int, name = pro, desc = "权重", mod = server} ,#f_column{type = bstr, name = name, desc = "技能名", mod = server} ]} ,{["属性随机库"], [ #f_column{type = int, name = id, desc = "随机库id", mod = server} ,#f_column{type = atom, name = attr, desc = "属性类型", mod = server} ,#f_column{type = int, name = pro, desc = "权重", mod = server} ]} ,{["技能预览"], [ #f_column{type = int, name = id, desc = "技能类型", mod = client} ,#f_column{type = term, name = skill_list, desc = "技能id", mod = client} ]} ] }.