%%%------------------------------------------------------------------- %%% @author Administrator %%% @copyright (C) 2024, %%% @doc %%% %%% @end %%% Created : 06. 3月 2024 15:26 %%%------------------------------------------------------------------- -module(recruit_gather_data). -author("Administrator"). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = recruit_gather_data ,lua_name = recruit_gather_data ,desc = "伙伴招募数据" ,source = "recruit_gather_data.xml" ,target = "recruit_gather_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_ten_n, must_ten_ss_n]}} , {get_group, cb_fun, handle, {get_record, ["召唤配置"], group_id, new_map, all}} , {get_open_day, cb_fun, handle, {get_tuple, ["召唤配置"], camp_id, open_day}} , {get_open_day_by_group, cb_fun, handle, {get_tuple, ["召唤配置"], group_id, open_day}} , {class_ids, cb_fun, handle, {tuple_type, ["召唤库"], [draw_type, group_id, type], class_id}} , {rand_class, cb_fun, handle, {tuple_type, ["召唤库"], [draw_type, group_id], [class_id, type, weight, hit_must_not_after_m_times]}} , {rand_type, cb_fun, handle, {get_tuple, ["召唤库"], class_id, type}} , {group_items, cb_fun, handle, {record_type, ["召唤随机库"], group_id, new_map, all}} ] ,callback_cli = [ {partnersummon_data, cb_fun_lua, handle, {key_val, ["召唤配置"], [group_id], all}} ,{partnersummon_const, cb_fun_lua, handle, {key_val, ["常量配置"], [key], all}} ,{explain, cb_fun_lua, handle, {key_val, ["玩法说明"], [id], all}} ,{summon_data, cb_fun_lua, handle, {type_get_val, ["概率公示"], [id,base_id], all}} ] ,callback_json = [ {partnersummon_data, cb_fun_json, handle, {key_val, ["召唤配置"], [camp_id], all}} ,{partnersummon_const, cb_fun_json, handle, {key_val, ["常量配置"], [key], all}} ,{explain, cb_fun_json, handle, {key_val, ["玩法说明"], [id], all}} ,{summon_data, cb_fun_json, handle, {type_get_val, ["奖池"], [id, base_id], 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 = limit_id, mod = all} , #f_column{desc = "抽奖次数", type = term, name = draw_list, comment = "抽奖次数列表,例子:1,5或5",mod = server} , #f_column{desc = "单抽道具消耗", type = term, name = item_once, width = 200, comment = "{道具id, 数量}",mod = all} , #f_column{desc = "五连抽道具消耗", type = term, name = item_ten, width = 200, comment = "{道具id, 数量}",mod = all} , #f_column{desc = "单抽特殊道具消耗", type = term, name = ext_item_once, width = 200, comment = "{道具id, 数量}",mod = server} , #f_column{desc = "五连抽特殊抽道具消耗", type = term, name = ext_item_ten, width = 200, comment = "{道具id, 数量}",mod = server} , #f_column{desc = "单抽兑换消耗", type = term, name = exchange_once, width = 200, comment = "{道具id, 数量}",mod = server} , #f_column{desc = "单抽兑换获得", type = term, name = exchange_once_gain, width = 200, comment = "{道具id, 数量}",mod = server} , #f_column{desc = "五连抽兑换消耗", type = term, name = exchange_ten, width = 200, comment = "{道具id, 数量}",mod = server} , #f_column{desc = "五连抽兑换获得", type = term, name = exchange_ten_gain, width = 200, comment = "{道具id, 数量}",mod = server} , #f_column{desc = "10连必出5星次数", type = int, name = must_ten_ss_n, width = 250, comment = "必出SS英雄"} , #f_column{desc = "月卡五连抽折扣", type = int, name = month_card_dist_ten, comment = "千位数", mod = server} , #f_column{desc = "五连折扣时间", type = int, name = limit_dist_ten_time, comment = "分钟", mod = server} , #f_column{desc = "折扣后价格", type = term, name = limit_dist_ten_lose, mod = server} , #f_column{desc = "折扣次数", type = int, name = limit_dist_ten_count, mod = server} , #f_column{desc = "卡库背景", type = bstr, name = anim, mod = client} , #f_column{desc = "特效动作", type = bstr, name = action_name, mod = client} , #f_column{desc = "排序", type = int, name = sort_id, mod = client} , #f_column{desc = "积分获得", type = term, name = recruit_hero_gain, mod = all} , #f_column{desc = "显示标识", type = int, name = is_show, mod = client} , #f_column{desc = "阵营编号", type = int, name = camp_type, mod = client} , #f_column{desc = "活动id", type = int, name = camp_id, mod = client} , #f_column{desc = "奖励预览", type = term, name = reward_show, mod = client} , #f_column{desc = "跳转", type = int, name = jump, mod = client} , #f_column{desc = "开放时间", type = term, name = open_day, mod = server} , #f_column{desc = "开放描述", type = bstr, name = open_desc, 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 = "抽卡类型", type = kv, name = draw_type, kv_type = [{"单抽", 1}, {"五连抽", 10}]} , #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 = name, mod = desc} , #f_column{desc = "物品基础Id", type = int, name = bid, valid_list = [item]} , #f_column{desc = "物品名称", type = bstr, name = item_name} , #f_column{desc = "数量", type = int, name = num} , #f_column{desc = "是否绑定", type = kv, name = bind, kv_type = bool} , #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 = must_after_m_times, comment = "抽空M次后,必出该物品,0表示不限制"} , #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_after_m_times, comment = "抽中之后,要再抽M次之后必抽中,0表示不限制"} , #f_column{desc = "连抽必出权重", type = int, name = series_must_weight, comment = "连抽必出时使用"} , #f_column{desc = "等级限制下限", type = int, name = min_lev, comment = "等级下限,0不限制"} , #f_column{desc = "等级限制上限", type = int, name = max_lev, comment = "等级上限,0不限制"} , #f_column{desc = "是否传闻", type = kv, name = is_notice, kv_type = bool, comment = "具体由各模块决定实际用途"} ]} ,{["玩法说明"], [ #f_column{type = int, name = id, desc = "标签", primary = true, mod = client} ,#f_column{type = str, name = title, desc = "标签名", mod = client} ,#f_column{type = str, name = desc, desc = "内容", mod = client} ]} ,{["奖池"], [ #f_column{type = int, name = id, desc = "召唤编号", mod = client} %% ,#f_column{type = bstr, name = cate_name, desc = "类型", mod = client} ,#f_column{type = int, name = base_id, desc = "物品基础id", mod = client} ,#f_column{type = str, name = summon_desc, desc = "概率", mod = client} ]} ] }.