%%---------------------------------------------------- %% 伙伴招募配置文件 %% @author liwl %%---------------------------------------------------- -module(recruit_high_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = recruit_high_data ,lua_name = recruit_high_data ,desc = "高级伙伴招募数据" ,source = "recruit_high_data.xml" ,target = "recruit_high_data.erl" ,inc = [] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} , {dun_list, cb_fun, handle, {record_list, ["召唤配置"], new_map, [group_id, limit_id, draw_list, must_five_n, must_five_ss_n]}} , {get_group, cb_fun, handle, {get_record, ["召唤配置"], group_id, new_map, all}} , {group_list, cb_fun, handle, {list, ["召唤配置"]}} , {rand_class, cb_fun, handle, {tuple_type, ["召唤库"], group_id, [class_id, type, weight, series_must_weight, hit_must_not_after_m_times]}} , {rand_type, cb_fun, handle, {get_tuple, ["召唤库"], class_id, type}} , {{is_best, "0"}, cb_fun, handle, {get_tuple, ["召唤库"], class_id, is_best}} , {group_items, cb_fun, handle, {record_type, ["召唤随机库"], group_id, new_map, all}} , {{group_must, "undefined"}, cb_fun, handle, {get_record, ["必出伙伴召唤"], [group_id, num], new_map, all}} , {{must_type, "[]"}, cb_fun, handle, {tuple_type, ["必出伙伴召唤"], is_all, num}} , {rand_convert_class, cb_fun, handle, {tuple_type, ["转换库"], [type, star], [class_id, weight]}} , {convert_group_items, cb_fun, handle, {record_type, ["转换随机库"], class_id, new_map, all}} ] ,callback_cli = [ {seerpalace_data, cb_fun_lua, handle, {key_val, ["召唤配置"], [group_id], all}} ,{seerpalace_const, cb_fun_lua, handle, {key_val, ["常量配置"], [key], all}} ,{seerpalace_award, cb_fun_lua, handle, {type_get_val, [ "召唤预览"], [id, star], all}} ] ,callback_json = [ {seerpalace_data, cb_fun_json, handle, {key_val, ["召唤配置"], [group_id], all}} ,{seerpalace_const, cb_fun_json, handle, {key_val, ["常量配置"], [key], all}} ,{seerpalace_award, cb_fun_json, handle, {type_get_val, [ "召唤预览"], [id, star], 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 = "召唤编号", type = int, name = group_id, mod = all} , #f_column{desc = "召唤名称", type = bstr, name = name, mod = all} , #f_column{desc = "抽奖次数", type = term, name = draw_list, comment = "抽奖次数列表,例子:1,5或5",mod = all} , #f_column{desc = "道具消耗", type = term, name = item_once, width = 200, comment = "{道具id, 数量}",mod = all} , #f_column{desc = "单抽兑换获得", type = term, name = exchange_once_gain, width = 200, comment = "{道具id, 数量}",mod = all} , #f_column{desc = "保底次数", type = int, name = must_n, comment = "保底次数",mod = all} ]} , {["召唤库"], [#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 = "保底权重", type = int, name = series_must_weight} , #f_column{desc = "是否5星", type = kv, name = is_best, kv_type = bool} , #f_column{desc = "M次以内必不出", type = int, name = hit_must_not_after_m_times, val = 0, comment = "抽中之后,要再抽M次之后才可再次中,0表示不限制"} ]} , {["召唤随机库"], [#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 = "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 = "召唤编号", type = int, name = group_id} , #f_column{desc = "召唤次数", type = int, name = num} , #f_column{desc = "随机库编号", type = int, name = class_id} , #f_column{desc = "是否总次数", type = int, name = is_all, val = 0} ]} , {["转换库"], [ #f_column{desc = "类型名称", type = kv, kv_type = partner_camp_type,name = type} , #f_column{desc = "星级", type = int, name = star} , #f_column{desc = "随机库编号", type = int, name = class_id} , #f_column{desc = "权重", type = int, name = weight} ]} , {["转换随机库"], [#f_column{desc = "编号", type = int, name = id} , #f_column{desc = "随机库编号", type = int, name = class_id} , #f_column{desc = "转换名称", type = bstr, name = name, mod = desc} , #f_column{desc = "伙伴Id", type = int, name = bid} , #f_column{desc = "伙伴名称", type = bstr, name = name} , #f_column{desc = "权重", type = int, name = weight} , #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{type = int, name = id, desc = "召唤编号", mod = client} ,#f_column{type = int, name = star, desc = "星级", mod = client} ,#f_column{type = term, name = items, desc = "道具预览", mod = client} ,#f_column{type = str, name = desc, desc = "概率说明", mod = client} ]} ] }.