%%---------------------------------------------------- %% "伙伴宝石" %% %% @author liufenglin 240039421@qq.com %%---------------------------------------------------- -module(partner_gemstone_data). -author("Administrator"). -include("common.hrl"). -include("data_config.hrl"). %% API -export([cfg/0]). cfg() -> #data_cfg{ name = partner_gemstone_data ,lua_name = partner_gemstone_data ,desc = "伙伴宝石配置数据" ,source = "partner_gemstone_data.xml" ,target = "partner_gemstone_data.erl" ,inc = ["partner.hrl", "common.hrl", "attr.hrl"] ,callback = [ {{get_stone_attr, "[]"}, cb_fun, handle, {get_tuple, ["宝石升级"], [type, lev], attr}} ,{{get_stone_expend, "undefined"}, cb_fun, handle, {get_tuple, ["宝石升级"], [type, lev], expend}} ,{get_stone_limit_break_lev, cb_fun, handle, {get_tuple, ["宝石升级"], [type, lev], limit_lev}} ,{{get_shell_add, "[]"}, cb_fun, handle, {get_tuple, ["宝石升级"], [type, lev], add}} ,{get_stone_resonance, cb_fun, handle, {tuple_list, ["宝石共鸣"], [lev, need_lev]}} ,{{get_stone_resonance_attr, "[]"}, cb_fun, handle, {get_tuple, ["宝石共鸣"], need_lev, attr}} ,{{get_stone_resonance_lev, "0"}, cb_fun, handle, {get_tuple, ["宝石共鸣"], need_lev, lev}} ,{{get_stone_ref, "[]"}, cb_fun, handle, {get_tuple, ["改版补偿"], id, items}} ,{{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], code, val}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量"], code, [val, desc]}} ,{upgrade, cb_fun_lua, handle, {key_val, ["宝石升级"], [type, lev], all}} ,{resonate, cb_fun_lua, handle, {key_val, ["宝石共鸣"], lev, all}} ,{explain, cb_fun_lua, handle, {key_val, ["玩法说明"], [id], all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量"], code, [val, desc]}} ,{upgrade, cb_fun_json, handle, {key_val, ["宝石升级"], [type, lev], all}} ,{resonate, cb_fun_json, handle, {key_val, ["宝石共鸣"], lev, all}} ,{explain, cb_fun_json, handle, {key_val, ["玩法说明"], [id], all}} ] ,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, add_list_sign = false} ]} ,{["宝石升级"], [ #f_column{type = kv, kv_type = item_type, name = type, desc = "部位", mod = all} ,#f_column{type = int, name = lev, desc = "宝石等级", mod = all} ,#f_column{type = int, name = limit_lev, desc = "角色等级限制", val = "0", mod = all} ,#f_column{type = term, name = attr, desc = "属性", mod = all} ,#f_column{type = int, name = expend, desc = "升级消耗", mod = all} ,#f_column{type = term, name = add, desc = "分解返回", mod = all} ,#f_column{type = int, name = icon, desc = "宝石图标", mod = client} ]} ,{["宝石共鸣"], [ #f_column{type = int, name = lev, desc = "共鸣等级", mod = all} ,#f_column{type = int, name = need_lev, desc = "总等级", mod = all} ,#f_column{type = term, name = attr, desc = "加成总属性", mod = all} ]} ,{["玩法说明"], [ #f_column{type = int, name = id, desc = "标签", primary = true, mod = client} ,#f_column{type = str, name = title, desc = "标签名", mod = client} ,#f_column{type = str, name = desc, desc = "内容", mod = client} ]} ,{["改版补偿"], [ #f_column{type = int, name = id, desc = "宝石id", mod = all} ,#f_column{type = term, name = items, desc = "第三次改版补偿", mod = all} ]} ] }.