77 lines
4.2 KiB
Erlang
77 lines
4.2 KiB
Erlang
|
|
%%%-------------------------------------------------------------------
|
||
|
|
%%% @author liufenglin
|
||
|
|
%%% @doc
|
||
|
|
%%% 战斗加成相关
|
||
|
|
%%% @end
|
||
|
|
%%%-------------------------------------------------------------------
|
||
|
|
-module(combat_halo_data).
|
||
|
|
|
||
|
|
|
||
|
|
%% API
|
||
|
|
-export([cfg/0]).
|
||
|
|
|
||
|
|
-include("data_config.hrl").
|
||
|
|
-include("common.hrl").
|
||
|
|
|
||
|
|
cfg() ->
|
||
|
|
#data_cfg{
|
||
|
|
name = combat_halo_data
|
||
|
|
,lua_name = combat_halo_data
|
||
|
|
,desc = "战斗加成配置数据"
|
||
|
|
,source = "combat_halo_data.xml"
|
||
|
|
,target = "combat_halo_data.erl"
|
||
|
|
,inc = ["common.hrl"]
|
||
|
|
,callback = [
|
||
|
|
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
|
||
|
|
,{list_camp_halo, cb_fun, handle, {list, ["阵容光环"]}}
|
||
|
|
,{get_camp_halo, cb_fun, handle, {get_record, ["阵容光环"], id, new_map, all}}
|
||
|
|
,{{get_camp_type_dam, 0}, cb_fun, handle, {get_tuple, ["属性克制"], [camp_type1, camp_type2], dam}}
|
||
|
|
,{{get_camp_type_hit_rate, 0}, cb_fun, handle, {get_tuple, ["属性克制"], [camp_type1, camp_type2], hit_rate}}
|
||
|
|
]
|
||
|
|
,callback_cli = [
|
||
|
|
{const, cb_fun_lua, handle, {key_val, ["常量配置"], [key], all}}
|
||
|
|
,{halo, cb_fun_lua, handle, {key_val, ["阵容光环"], [id], all}}
|
||
|
|
,{halo_icon, cb_fun_lua, handle, {key_val, ["光环图标"], [id], all}}
|
||
|
|
,{halo_show, cb_fun_lua, handle, {type_get_val, ["光环种类显示"], [id, index], [name, icon, desc, attrs, pos_info]}}
|
||
|
|
]
|
||
|
|
,callback_json = [
|
||
|
|
{const, cb_fun_json, handle, {key_val, ["常量配置"], [key], all}}
|
||
|
|
,{halo, cb_fun_json, handle, {key_val, ["阵容光环"], [id], all}}
|
||
|
|
,{halo_icon, cb_fun_json, handle, {key_val, ["光环图标"], [id], all}}
|
||
|
|
,{halo_show, cb_fun_json, handle, {type_get_val, ["光环种类显示"], [id, index], [name, icon, desc, attrs, pos_info]}}
|
||
|
|
]
|
||
|
|
,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 = "光环编号", mod = all}
|
||
|
|
,#f_column{type = term, name = pos_info, desc = "阵容英雄数量", comment = "阵容类型从小往大填", mod = all}
|
||
|
|
,#f_column{type = term, name = attrs, desc = "光环效果", mod = all}
|
||
|
|
,#f_column{type = int, name = condition, desc = "不生效条件", mod = all}
|
||
|
|
]}
|
||
|
|
,{["光环图标"], [
|
||
|
|
#f_column{type = int, name = id, desc = "图标编号", mod = client}
|
||
|
|
,#f_column{type = int, name = icon, desc = "图标id", mod = client}
|
||
|
|
,#f_column{type = term, name = nums, desc = "数字标识", mod = client}
|
||
|
|
]}
|
||
|
|
,{["属性克制"], [
|
||
|
|
#f_column{type = kv, name = camp_type1, desc = "阵营1", kv_type = partner_camp_type, mod = all}
|
||
|
|
,#f_column{type = kv, name = camp_type2, desc = "阵营2", kv_type = partner_camp_type, mod = all}
|
||
|
|
,#f_column{type = int, name = dam, desc = "伤害提升", mod = all}
|
||
|
|
,#f_column{type = int, name = hit_rate, desc = "命中提升", mod = all}
|
||
|
|
]}
|
||
|
|
,{["光环种类显示"], [
|
||
|
|
#f_column{type = int, name = id, desc = "种类编号", mod = client}
|
||
|
|
,#f_column{type = int, name = index, desc = "属性编号", mod = client}
|
||
|
|
,#f_column{type = str, name = name, desc = "种类名称", mod = client}
|
||
|
|
,#f_column{type = int, name = icon, desc = "种类图标", mod = client}
|
||
|
|
,#f_column{type = str, name = desc, desc = "属性描述", mod = client}
|
||
|
|
,#f_column{type = term, name = attrs, desc = "属性", mod = client}
|
||
|
|
,#f_column{type = term, name = pos_info, desc = "要求英雄数量", comment = "阵容类型从小往大填", mod = client}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}.
|