Files
fc/server/tools/gen_data/cfg/partner_holy_eqm_data.erl
T
2026-05-23 22:10:14 +08:00

118 lines
8.2 KiB
Erlang

%%----------------------------------------------------
%% 神装配置文件
%% @author yzq
%%----------------------------------------------------
-module(partner_holy_eqm_data).
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = partner_holy_eqm_data
,lua_name = partner_holy_eqm_data
,desc = "神装"
,source = "partner_holy_eqm_data.xml"
,target = "partner_holy_eqm_data.erl"
,inc = ["common.hrl", "holy_eqm.hrl"]
,callback = [
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts;", [key, val]}}
,{{get_rand_attr_group, "{0, 0}"}, cb_fun, handle, {get_tuple, ["神装基础"], id, [attr_num, group_id]}}
,{{attr_rand_list, "[]"}, cb_fun, handle, {record_type, ["属性随机库_1", "属性随机库_2", "属性随机库_3"], group_id, holy_eqm_attr_data, all}}
,{{get_group_max, "[]"}, cb_fun, handle, {get_tuple, ["随机库最大属性"], group_id, max_attr}}
,{get_ref_loss, cb_fun, handle, {get_tuple, ["神装基础"], id, reset_price}}
,{{get_pos_limit, "[]"}, cb_fun, handle, {get_tuple, ["神装基础"], id, limit}}
,{{get_eqm_set_skill, "[]"}, [{data_reverse, 1}], cb_fun, handle, {get_fun, ["神装套装"], "get_eqm_set_skill({~ts, Num}) when Num >= ~ts -> ~ts;", [id, num, all_skill_id]}}
,{group_list, cb_fun, handle, {list, ["随机库最大属性"]}}
,{buy_holy_set_loss, cb_fun, handle, {get_tuple, ["神装管理"], id, open_cost}}
%% ,{get_holy_set_name, cb_fun, handle, {get_tuple, ["神装套装"], id, name}}
,{get_holy_set_name, cb_fun, handle, {get_fun, ["神装套装"], "get_holy_set_name(~ts) -> ~ts;", [id, name]}}
,{{get_holy_attr_score, "0"}, cb_fun, handle, {get_tuple, ["神装属性评分加成"], attr, score}}
,{{get_holy_eqm_base_score, "0"}, cb_fun, handle, {get_tuple, ["神装基础"], id, score}}
]
,callback_cli = [
{const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}}
,{suit_info, cb_fun_lua, handle, {list_val, ["神装套装"], [id], all}}
,{base_info, cb_fun_lua, handle, {val_str, ["神装基础"], [id], all}}
,{suit_res_prefix, cb_fun_lua, handle, {key_val, ["套装对应图标"], [id], all}}
,{attr_color_rule, cb_fun_lua, handle, {key_val, ["属性值颜色规则"], [group_id, attr_type], [color_list]}}
,{attr_max_info, cb_fun_lua, handle, {key_val, ["随机库最大属性"], [group_id], [max_attr]}}
,{holy_suit_manage, cb_fun_lua, handle, {key_val, ["神装管理"], [id], all}}
,{holy_attr_score, cb_fun_lua, handle, {key_val, ["神装属性评分加成"], [attr], all}}
]
,callback_json = [
{const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}}
,{suit_info, cb_fun_json, handle, {list_val, ["神装套装"], [id], all}}
,{base_info, cb_fun_json, handle, {val_str, ["神装基础"], [id], all}}
,{suit_res_prefix, cb_fun_json, handle, {key_val, ["套装对应图标"], [id], all}}
,{attr_color_rule, cb_fun_json, handle, {key_val, ["属性值颜色规则"], [group_id, attr_type], [color_list]}}
,{attr_max_info, cb_fun_json, handle, {key_val, ["随机库最大属性"], [group_id], [max_attr]}}
,{holy_suit_manage, cb_fun_json, handle, {key_val, ["神装管理"], [id], all}}
,{holy_attr_score, cb_fun_json, handle, {key_val, ["神装属性评分加成"], [attr], all}}
]
,sheet = [
{["常量配置"],[
#f_column{type = term, name = key, desc = "常量标识", add_list_sign = false,mod = all}
,#f_column{type = term, name = val, desc = "常量值", add_list_sign = false,mod= all}
,#f_column{type = bstr, name = desc, desc = "描述", mod = client}
]}
,{["神装基础"], [
#f_column{type = int, name = id, desc = "神装id", mod = all}
,#f_column{type = int, name = group, desc = "系列", mod = all}
,#f_column{type = int, name = attr_num, desc = "属性随机数量", mod = all}
,#f_column{type = int, name = group_id, desc = "属性随机库Id", mod = all}
,#f_column{type = term, name = limit, desc = "穿戴条件", mod = all}
,#f_column{type = term, name = reset_price, desc = "洗练价格", mod = all}
,#f_column{type = bstr, name = unlock_desc, desc = "穿戴条件描述", mod = client}
,#f_column{type = int, name = is_show, desc = "是否在图鉴显示", mod = client}
,#f_column{type = int, name = sort, desc = "神装图鉴显示排序", mod = client}
,#f_column{type = bstr, name = tips_info, desc = "随机属性类型展示", mod = client}
,#f_column{type = bstr, name = show_name, desc = "穿戴界面显示名字", mod = client}
,#f_column{type = bstr, name = name, desc = "穿戴界面显示名字", mod = client}
,#f_column{type = int, name = score, desc = "基础评分", mod = all}
]}
,{["属性随机库_1", "属性随机库_2", "属性随机库_3"], [
#f_column{type = int, name = group_id, desc = "随机库ID", mod = all}
,#f_column{type = atom, name = attr, desc = "属性类型", mod = all}
,#f_column{type = int, name = time_min, desc = "洗练次数下限", mod = all}
,#f_column{type = int, name = time_max, desc = "洗练次数上限", mod = all}
,#f_column{type = term, name = val_range, desc = "数值区间", add_list_sign = false, mod = all}
,#f_column{type = int, name = first_pro, desc = "初始随机权重", mod = all}
,#f_column{type = int, name = reset_pro, desc = "洗练随机权重", mod = all}
]}
,{["随机库最大属性"], [
#f_column{type = int, name = group_id, desc = "随机库ID", mod = all}
,#f_column{type = term, name = max_attr, desc = "属性最大值", mod = all}
]}
,{["属性值颜色规则"], [
#f_column{type = int, name = group_id, desc = "随机库ID", mod = client}
,#f_column{type = bstr, name = attr_type, desc = "属性类型", mod = client}
,#f_column{type = term, name = color_list, desc = "颜色规则", mod = client}
]}
,{["神装套装"], [
#f_column{type = int, name = id, desc = "套装id", mod = all}
,#f_column{type = bstr, name = name, desc = "套装名", mod = all}
,#f_column{type = int, name = num, desc = "套装数量", mod = all}
,#f_column{type = term, name = skill_id, desc = "套装技能", mod = all}
,#f_column{type = term, name = all_skill_id, desc = "套装总技能", mod = server}
,#f_column{type = term, type_func = str, name = all_skill_desc, desc = "tips显示类型", mod = client, add_list_sign = false}
]}
,{["套装对应图标"], [
#f_column{type = int, name = id, desc = "套装id", mod = client}
,#f_column{type = bstr, name = name, desc = "套装名", mod = client}
,#f_column{type = bstr, name = prefix, desc = "套装拼图图片文件名前缀", mod = client}
]}
,{["神装管理"], [
#f_column{type = int, name = id, desc = "方案id", mod = client}
,#f_column{type = bstr, name = name, desc = "方案初始名", mod = client}
,#f_column{type = kv, name = is_open, desc = "方案初始是否开启", kv_type = bool, mod = client}
,#f_column{type = term, name = open_cost, desc = "开启消耗", mod = client}
]}
,{["神装属性评分加成"], [
#f_column{type = atom, name = attr, desc = "属性", mod = all}
,#f_column{type = int, name = score, desc = "每1000点属性增加的评分数", mod = all}
]}
]
}.