%%---------------------------------------------------- %% 伙伴招募配置文件 %% @author liwl %%---------------------------------------------------- -module(recruit_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = recruit_data ,lua_name = recruit_data ,desc = "伙伴招募数据" ,source = "recruit_data.xml" ,target = "recruit_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}} , {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}} , {{group_must, "undefined"}, cb_fun, handle, {get_record, ["必出伙伴召唤"], [group_id, draw_type, num], 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, ["召唤配置"], [group_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 = all} , #f_column{desc = "单抽道具消耗", type = term, name = item_once, width = 200, comment = "{道具id, 数量}",mod = all} , #f_column{desc = "五连抽道具消耗", type = term, name = item_five, width = 200, comment = "{道具id, 数量}",mod = all} , #f_column{desc = "单抽特殊道具消耗", type = term, name = ext_item_once, width = 200, comment = "{道具id, 数量}",mod = all} , #f_column{desc = "五连抽特殊抽道具消耗", type = term, name = ext_item_five, width = 200, comment = "{道具id, 数量}",mod = all} , #f_column{desc = "单抽兑换消耗", type = term, name = exchange_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 = term, name = exchange_five, width = 200, comment = "{道具id, 数量}",mod = all} , #f_column{desc = "五连抽兑换获得", type = term, name = exchange_five_gain, width = 200, comment = "{道具id, 数量}",mod = all} , #f_column{desc = "10连必出5星次数", type = int, name = must_five_ss_n, width = 250, comment = "必出SS英雄"} , #f_column{desc = "月卡五连抽折扣", type = int, name = month_card_dist_five, comment = "千位数", mod = all} , #f_column{desc = "五连折扣时间", type = int, name = limit_dist_five_time, comment = "分钟", mod = all} , #f_column{desc = "折扣后价格", type = term, name = limit_dist_five_lose, mod = all} , #f_column{desc = "折扣次数", type = int, name = limit_dist_five_count, mod = all} , #f_column{desc = "卡库背景", type = bstr, name = card_bg_res, mod = client} , #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 = 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 = term, name = not_five_star_must, mod = server} ]} , {["召唤库"], [#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 = 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{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} ]} ,{["玩法说明"], [ #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 = int, name = base_id, desc = "物品基础id", mod = client} ,#f_column{type = str, name = summon_desc, desc = "概率", mod = client} ]} ] }.