%%---------------------------------------------------- %% "星命" %% %% @author liufenglin 240039421@qq.com %%---------------------------------------------------- -module(star_data). -author("Administrator"). -include("common.hrl"). -include("data_config.hrl"). %% API -export([cfg/0]). cfg() -> #data_cfg{ name = star_data ,lua_name = star_data ,desc = "星命配置数据" ,source = "star_data.xml" ,target = "star_data.erl" ,inc = ["common.hrl", "attr.hrl"] ,callback = [ {{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], code, val}} ,{get_type, cb_fun, handle, {get_tuple, ["星命基础数据"], star, type}} ,{get_all_star, cb_fun, handle, {list, ["星命基础数据"]}} ,{get_limit, cb_fun, handle, {get_tuple, ["星命基础数据"], star, limit}} ,{get_star_by_type, cb_fun, handle, {tuple_type, ["星命基础数据"], type, star}} ,{{get_set_attr, "[]"}, cb_fun, handle, {get_tuple, ["星命套装属性"], [star, lev], all_fetter_attr}} ,{{get_set_skill, "0"}, cb_fun, handle, {get_tuple, ["星命套装属性"], [star, lev], fetter_skill}} ,{{get_natal_lev_up_attr, "[]"}, cb_fun, handle, {get_tuple, ["命格升级"], [star, type, lev], all_attr}} ,{get_natal_lev_up_expend, cb_fun, handle, {get_tuple, ["命格升级"], [star, type, lev], expend}} ,{get_natal_lev_max_lev, cb_fun, handle, {get_tuple, ["命格突破"], [bid, limit], max_lev}} ,{get_natal_break_up_expend, cb_fun, handle, {get_tuple, ["命格突破"], [bid, limit], expend}} ,{{get_natal_break_up_attr, "[]"}, cb_fun, handle, {get_tuple, ["命格突破"], [bid, limit], all_attr}} ,{{get_natal_star_up_expend, "undefined"}, cb_fun, handle, {get_tuple, ["命格升星"], [id, lev], expend}} ,{{get_natal_star_up_attr, "[]"}, cb_fun, handle, {get_tuple, ["命格升星"], [id, lev], all_attr}} ] ,callback_cli = [ {star_const, cb_fun_lua, handle, {key_val, [ "常量"], [code], all}} ,{star_base, cb_fun_lua, handle, {key_val, [ "星命基础数据"], [star], all}} ,{set_attr, cb_fun_lua, handle, {val_str, [ "星命套装属性"], [star,lev], all}} ,{star_break, cb_fun_lua, handle, {val_str, [ "命格突破"], [bid,limit], all}} ,{star_lev, cb_fun_lua, handle, {val_str, [ "命格升级"], [star,type,lev], all}} ,{star_up, cb_fun_lua, handle, {val_str, [ "命格升星"], [id,lev], all}} ,{star_max_lev, cb_fun_lua, handle, {type_get_max, [ "命格突破"], [bid], max_lev}} ,{star_name, cb_fun_lua, handle, {kv, star_type}} ] ,callback_json = [ {star_const, cb_fun_json, handle, {key_val, [ "常量"], [code], all}} ,{star_base, cb_fun_json, handle, {key_val, [ "星命基础数据"], [star], all}} ,{set_attr, cb_fun_json, handle, {val_str, [ "星命套装属性"], [star,lev], all}} ,{star_break, cb_fun_json, handle, {val_str, [ "命格突破"], [bid,limit], all}} ,{star_lev, cb_fun_json, handle, {val_str, [ "命格升级"], [star,type,lev], all}} ,{star_up, cb_fun_json, handle, {val_str, [ "命格升星"], [id,lev], all}} ,{star_max_lev, cb_fun_json, handle, {type_get_max, [ "命格突破"], [bid], max_lev}} ,{star_name, cb_fun_json, handle, {kv, star_type}} ] ,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 = star_type, name = star, desc = "星命", mod = all} ,#f_column{type = int, name = set_id, desc = "套装ID", mod = all} ,#f_column{type = int, name = limit, desc = "开启条件", mod = all} ,#f_column{type = int, name = skill_id, desc = "套装技能", val = "[]", mod = all} ,#f_column{type = kv, name = type, desc = "适用类型", kv_type = partner_career_type, mod = all} ,#f_column{type = int, name = total_fc, desc = "满级战力", mod = client} ]} ,{["星命套装属性"], [ #f_column{type = kv, kv_type = star_type, name = star, desc = "星命", mod = all} ,#f_column{type = int, name = lev, desc = "等级", mod = all} ,#f_column{type = term, name = fetter_attr, desc = "套装属性", val = "[]", mod = all} ,#f_column{type = term, name = all_fetter_attr, desc = "套装总属性", val = "[]", mod = all} ,#f_column{type = int, name = fetter_skill, desc = "套装新技能", val = "0", mod = all} ,#f_column{type = bstr, name = star_desc, desc = "套装效果描述", mod = client} ]} ,{["命格突破"], [ #f_column{type = int, name = bid, desc = "命格bid", mod = all} ,#f_column{type = int, name = limit, desc = "可突破次数", mod = all} ,#f_column{type = int, name = max_lev, desc = "等级上限", mod = all} ,#f_column{type = term, name = expend, desc = "消耗", val = "[]", mod = all} ,#f_column{type = term, name = add_attr, desc = "突破增加属性", val = "[]", mod = all} ,#f_column{type = term, name = all_attr, desc = "突破总属性", val = "[]", mod = all} ]} ,{["命格升级"], [ #f_column{type = kv, kv_type = star_type, name = star, desc = "星命", mod = all} ,#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 = term, name = expend, desc = "升级消耗", val = "[]", mod = all} ,#f_column{type = term, name = add_attr, desc = "升级增加属性", val = "[]", mod = all} ,#f_column{type = term, name = all_attr, desc = "总属性", val = "[]", mod = all} ]} ,{["命格升星"], [ #f_column{type = int, name = id, desc = "物品id", 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 = add_attr, desc = "突破增加属性", val = "[]", mod = all} ,#f_column{type = term, name = all_attr, desc = "突破总属性", val = "[]", mod = all} ]} ] }.