Files

123 lines
7.9 KiB
Erlang
Raw Permalink Normal View History

2026-05-23 22:10:14 +08:00
%%%-------------------------------------------------------------------
%%% @author Administrator
%%% @copyright (C) 2023, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 21. 4月 2023 13:42
%%%-------------------------------------------------------------------
-module(infinite_ten_recruit_data).
%%----------------------------------------------------
%% 无限十连召唤配置文件
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = infinite_ten_recruit_data
,lua_name = infinite_ten_recruit_data
,desc = "无限十连召唤数据"
,source = "infinite_ten_recruit_data.xml"
,target = "infinite_ten_recruit_data.erl"
,inc = []
,callback = [
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
,{get_camp_group, cb_fun, handle, {get_tuple, ["活动配置"], camp_id, group_id}}
,{get_all_camp_id, cb_fun, handle, {tuple_list, ["活动配置"], camp_id}}
,{get_group, cb_fun, handle, {get_record, ["召唤配置"], group_id, new_map, all}}
,{group_items, cb_fun, handle, {record_type, ["召唤随机库"], group_id, new_map, all}}
,{rand_class, cb_fun, handle, {tuple_type, ["召唤库"], group_id, [class_id, type, weight, hit_must_not_after_m_times]}}
, {class_type, cb_fun, handle, {get_tuple, ["召唤库"], class_id, type}}
, {{is_best, "0"}, cb_fun, handle, {get_tuple, ["召唤库"], class_id, is_best}}
, {{group_must, "undefined"}, cb_fun, handle, {get_record, ["必出伙伴召唤"], [group_id, num], new_map, all}}
,{server_must_class, cb_fun, handle, {tuple_type, ["召唤库"], group_id, [class_id, type, hit_must_in_server_times]}}
, {{must_not_hit_in_m_times, "0"}, cb_fun, handle, {get_tuple, ["召唤库"], class_id, must_not_hit_in_m_times}}
, {{hit_must_every_m_times, "0"}, cb_fun, handle, {get_tuple, ["召唤库"], class_id, hit_must_every_m_times}}
, {{must_hit_in_m_times, "0"}, cb_fun, handle, {get_tuple, ["召唤库"], class_id, must_hit_in_m_times}}
]
,callback_cli = [
{const, cb_fun_lua, handle, {key_val, ["常量配置"], [key], all}}
,{action, cb_fun_lua, handle, {key_val, ["活动配置"], [camp_id], all}}
,{summon, cb_fun_lua, handle, {key_val, ["召唤配置"], [group_id], all}}
,{probability, cb_fun_lua, handle, {type_get_val, ["概率展示"], [group_id,index], all}}
]
,callback_json = [
{const, cb_fun_json, handle, {key_val, ["常量配置"], [key], all}}
,{action, cb_fun_json, handle, {key_val, ["活动配置"], [camp_id], all}}
,{summon, cb_fun_json, handle, {key_val, ["召唤配置"], [group_id], all}}
,{probability, cb_fun_json, handle, {type_get_val, ["概率展示"], [group_id,index], all}}
]
,sheet = [
{["常量配置"],
[#f_column{desc = "", type = atom, name = key, primary = true, mod = all}
, #f_column{desc = "", type = term, name = val, add_list_sign = false, mod = all}
, #f_column{desc = "描述", type = str, name = desc, mod = all}
]}
, {["活动配置"],
[#f_column{desc = "活动ID", type = int, name = camp_id, mod = all}
,#f_column{desc = "召唤编号", type = int, name = group_id, mod = all}
, #f_column{desc = "奖励描述", type = str, name = desc, mod = client}
]}
, {["召唤配置"],
[#f_column{desc = "召唤编号", type = int, name = group_id, mod = all}
, #f_column{desc = "召唤名称", type = bstr, name = name, mod = all}
, #f_column{desc = "首抽保底池", type = int, name = first_class_id, mod = server}
, #f_column{desc = "10抽消耗", type = term, name = loss_item_ten, width = 200, comment = "{道具id, 数量}",mod = all}
, #f_column{desc = "特效动作", type = bstr, name = action_name, mod = client}
, #f_column{desc = "召唤背景", type = bstr, name = call_bg, mod = client}
, #f_column{desc = "艺术字", type = bstr, name = word_art, mod = client}
, #f_column{desc = "卡牌翻牌特效动作", type = bstr, name = action_card_name, mod = client}
, #f_column{desc = "召唤背景特效ID", type = int, name = call_bg_action, mod = client}
, #f_column{desc = "背景资源", type = int, name = res_id, mod = client}
]}
, {["召唤库"],
[#f_column{desc = "召唤编号", type = int, name = group_id}
, #f_column{desc = "召唤名称", type = bstr, name = name, mod = desc}
, #f_column{desc = "随机库编号", type = int, name = class_id}
, #f_column{desc = "随机库类型", type = kv, name = type, kv_type = [{"道具", 1}, {"伙伴", 2}]}
, #f_column{desc = "权重", type = int, name = weight}
, #f_column{desc = "M次以内必不出", type = int, name = must_not_in_m_times, comment = "0表示不限制", val = "0"}
, #f_column{desc = "全服每N次必触发", type = int, name = hit_must_in_server_times, comment = "0表示不限制", val = "0"}
, #f_column{desc = "首M次抽取必出", type = int, name = must_hit_in_m_times, comment = "0表示不限制", val = "0"}
, #f_column{desc = "首M次抽取必不出", type = int, name = must_not_hit_in_m_times, comment = "首M次抽取必不出"}
, #f_column{desc = "抽中后M次以内必不出", type = int, name = hit_must_not_after_m_times, comment = "抽中之后,要再抽M次之后才可再次中,0表示不限制"}
, #f_column{desc = "每M次抽取必出", type = int, name = hit_must_every_m_times, comment = "每抽M次后必出"}
, #f_column{desc = "是否保底", type = kv, name = is_best, kv_type = bool}
]}
, {["召唤随机库"],
[
#f_column{desc = "编号", type = int, name = id}
, #f_column{desc = "随机库编号", type = int, name = class_id}
, #f_column{desc = "召唤编号", type = int, name = group_id}
, #f_column{desc = "召唤名称", type = bstr, name = group_name, mod = desc}
, #f_column{desc = "物品基础Id", type = int, name = bid, valid_list = [item]}
, #f_column{desc = "物品名称", type = bstr, name = name}
, #f_column{desc = "数量", type = int, name = num}
, #f_column{desc = "权重", type = int, name = weight}
, #f_column{desc = "连抽必出权重", type = int, name = series_must_weight, comment = "连抽必出时使用"}
, #f_column{desc = "M次以内必不出", type = int, name = must_not_in_m_times, comment = "0表示不限制"}
, #f_column{desc = "抽中后M次以内必不出", type = int, name = hit_must_not_after_m_times, comment = "抽中之后,要再抽M次之后才可再次中,0表示不限制"}
, #f_column{desc = "是否传闻", type = kv, name = is_notice, kv_type = bool, comment = "具体由各模块决定实际用途"}
, #f_column{desc = "每M次抽取必出", type = int, name = hit_must_every_m_times, comment = "每抽M次后必出"}
]}
,{["概率展示"], [
#f_column{type = int, name = group_id, desc = "召唤编号", mod = client}
,#f_column{type = int, name = index, desc = "id", mod = client}
,#f_column{type = int, name = id, desc = "物品基础ID", mod = client}
,#f_column{type = int, name = num, desc = "数量", mod = client}
,#f_column{type = bstr, name = star, desc = "星数", mod = client}
,#f_column{type = bstr, name = name, desc = "名称", mod = client}
,#f_column{type = bstr, name = probability, desc = "概率", mod = client}
]}
, {["必出伙伴召唤"],
[#f_column{desc = "召唤编号", type = int, name = group_id}
, #f_column{desc = "召唤次数", type = int, name = num}
, #f_column{desc = "召唤伙伴道具Id", type = term, name = id}
, #f_column{desc = "抽卡类型", type = int, name = draw_type}
]}
]
}.