%%---------------------------------------------------- %% 数据配置文件 %% @author whjing2011@gmail.com %%---------------------------------------------------- -module(halidom_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = halidom_data ,lua_name = halidom_data ,js_name = halidom_data ,desc = "圣物配置数据" ,source = "halidom_data.xml" ,target = "halidom_data.erl" ,splitv = 1 ,head_rows = 2 ,inc = [] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{list, cb_fun, handle, {list, ["基础数据"]}} ,{get, cb_fun, handle, {get_record, ["基础数据"], id, new_map, all}} ,{get_lev, cb_fun, handle, {get_record, ["升级数据"], [id, lev], new_map, all}} ,{get_step, cb_fun, handle, {get_record, ["进阶数据"], [id, step], new_map, all}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{base, cb_fun_lua, handle, {key_val, ["基础数据"], [id], all}} ,{max_lev, cb_fun_lua, handle, {type_get_max, ["升级数据"], [id], lev}} ,{max_step, cb_fun_lua, handle, {type_get_max, ["进阶数据"], [id], step}} ,{lvup, cb_fun_lua, handle, {type_get_val, ["升级数据"], [id, lev], all}} ,{step, cb_fun_lua, handle, {type_get_val, ["进阶数据"], [id, step], all}} ,{skill, cb_fun_lua, handle, {key_val, ["圣物技能"], [id], all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{base, cb_fun_json, handle, {key_val, ["基础数据"], [id], all}} ,{max_lev, cb_fun_json, handle, {type_get_max, ["升级数据"], [id], lev}} ,{max_step, cb_fun_json, handle, {type_get_max, ["进阶数据"], [id], step}} ,{lvup, cb_fun_json, handle, {type_get_val, ["升级数据"], [id, lev], all}} ,{step, cb_fun_json, handle, {type_get_val, ["进阶数据"], [id, step], all}} ,{skill, cb_fun_json, handle, {key_val, ["圣物技能"], [id], all}} ] ,sheet = [ {["常量配置"], [ #f_column{type = atom, name = key, desc = "键", primary = true, mod = all} ,#f_column{type = term, name = val, desc = "值", add_list_sign=false, mod = all} ,#f_column{type = str, name = desc, desc = "描述", mod = all} ]} ,{["基础数据"], [ #f_column{type = int, name = id, desc = "圣物ID", primary = true, mod = all} ,#f_column{type = bstr, name = name, desc = "圣物名称", mod = all} ,#f_column{type = int, name = camp, desc = "圣物系别", mod = all} ,#f_column{type = term, name = loss, desc = "解锁消耗", mod = all} ,#f_column{type = int, name = effect_id, desc = "特效id", mod = client} ,#f_column{type = bstr, name = desc, desc = "圣器描述", mod = client} ,#f_column{type = bstr, name = lock_desc, desc = "解锁介绍", mod = client} ,#f_column{type = bstr, name = msc, desc = "传记描述", mod = client} ,#f_column{type = term, name = attr_args, desc = "属性转换系数"} ]} ,{["升级数据"], [ #f_column{type = int, name = id, desc = "圣物ID", primary = true, mod = all} ,#f_column{type = int, name = lev, desc = "等级", primary = true, mod = all} ,#f_column{type = term, name = loss, desc = "消耗", mod = all} ,#f_column{type = int, name = exp, desc = "升级经验", mod = all} ,#f_column{type = int, name = total_exp, desc = "升级总经验", mod = all} ,#f_column{type = term, name = exp_attr, desc = "经验属性加成", mod = all} ,#f_column{type = term, name = show_attr, desc = "升级属性展示", mod = client} ,#f_column{type = term, name = attr, desc = "属性加成", mod = all} ]} ,{["进阶数据"], [ #f_column{type = int, name = id, desc = "圣物ID", primary = true, mod = all} ,#f_column{type = int, name = step, desc = "阶数", primary = true, mod = all} ,#f_column{type = term, name = conds, desc = "进阶条件", mod = all} ,#f_column{type = term, name = loss_fixed, desc = "消耗指定卡", mod = all} ,#f_column{type = term, name = loss_rand, desc = "消耗随机卡", mod = all} ,#f_column{type = term, name = loss_items, desc = "消耗道具", mod = all} ,#f_column{type = term, name = dynamic_attr, desc = "动态属性加成", mod = all} ,#f_column{type = term, name = fixed_attr, desc = "固定属性加成", mod = all} ,#f_column{type = int, name = skill_icon, desc = "技能图标", mod = client} ]} ,{["圣物技能"], [ #f_column{type = int, name = id, desc = "技能ID", primary = true, mod = client} ,#f_column{type = bstr, name = name, desc = "技能名称", mod = client} ,#f_column{type = int, name = lev, desc = "技能等级", mod = client} ,#f_column{type = bstr, name = desc, desc = "技能描述", mod = client} ,#f_column{type = int, name = res_id, desc = "图标资源ID", mod = client} ]} ] }.