%%---------------------------------------------------- %% 天界副本 %% %% @author liufenglin 240039421@qq.com %%---------------------------------------------------- -module(dungeon_heaven_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = dungeon_heaven_data ,lua_name = dungeon_heaven_data ,desc = "活跃度" ,source = "dungeon_heaven_data.xml" ,target = "dungeon_heaven_data.erl" ,inc = ["common.hrl"] ,callback =[ {{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], code, val}} ,{list, cb_fun, handle, {list, ["副本配置"]}} ,{get_chapter_dun_list, cb_fun, handle, {tuple_type, ["副本配置"], id, order_id}} ,{get_cond_info, cb_fun, handle, {get_tuple, ["副本配置"], [id, order_id], cond_info}} ,{get_unit_id, cb_fun, handle, {get_tuple, ["副本配置"], [id, order_id], unit_id}} ,{is_boss, cb_fun, handle, {get_tuple, ["副本配置"], [id, order_id], type}} ,{get_f_award, cb_fun, handle, {get_tuple, ["副本配置"], [id, order_id], [f_award, f_drops]}} ,{get_award, cb_fun, handle, {get_tuple, ["副本配置"], [id, order_id], [auto_award, auto_drops]}} ,{{get_dun_id, "0"}, cb_fun, handle, {get_tuple, ["副本配置"], [id, order_id], dun_id}} ,{get_chapter_by_dun_id, cb_fun, handle, {get_tuple, ["副本配置"], dun_id, [id, order_id]}} ,{get_chapter_award_list, cb_fun, handle, {tuple_type, ["章节星数奖励"], id, award_id}} ,{get_chapter_award_need_star, cb_fun, handle, {get_tuple, ["章节星数奖励"], [id, award_id], limit_star}} ,{get_chapter_award, cb_fun, handle, {get_tuple, ["章节星数奖励"], [id, award_id], award}} ,{get_cond, cb_fun, handle, {get_tuple, ["星级条件"], id, condition}} ,{get_chapter_cond_info, cb_fun, handle, {get_tuple, ["章节配置"], id, cond_info}} ,{get_chapter_check_open, cb_fun, handle, {get_tuple, ["章节配置"], id, check_open}} ,{get_buy_count_info, cb_fun, handle, {get_tuple, ["挑战次数购买"], count, [limit_vip, cost]}} ] ,callback_cli =[ {const, cb_fun_lua, handle, {key_val, ["常量"], code, [val, desc]}} ,{customs, cb_fun_lua, handle, {type_get_val, ["副本配置"], [id, order_id], all}} ,{customs_num, cb_fun_lua, handle, {type_get_max, [ "副本配置"], [id], order_id}} ,{chapter, cb_fun_lua, handle, {key_val, ["章节配置"], id, all}} ,{star_award, cb_fun_lua, handle, {type_get_val, ["章节星数奖励"], [id, award_id], all}} ,{star_cond, cb_fun_lua, handle, {key_val, ["星级条件"], id, all}} ,{count_buy, cb_fun_lua, handle, {key_val, ["挑战次数购买"], count, all}} ,{customs_pos, cb_fun_lua, handle, {type_get_val, ["关卡位置"], [id, order_id], all}} ] ,callback_json =[ {const, cb_fun_json, handle, {key_val, ["常量"], code, [val, desc]}} ,{customs, cb_fun_json, handle, {type_get_val, ["副本配置"], [id, order_id], all}} ,{customs_num, cb_fun_json, handle, {type_get_max, [ "副本配置"], [id], order_id}} ,{chapter, cb_fun_json, handle, {key_val, ["章节配置"], id, all}} ,{star_award, cb_fun_json, handle, {type_get_val, ["章节星数奖励"], [id, award_id], all}} ,{star_cond, cb_fun_json, handle, {key_val, ["星级条件"], id, all}} ,{count_buy, cb_fun_json, handle, {key_val, ["挑战次数购买"], count, all}} ,{customs_pos, cb_fun_json, handle, {type_get_val, ["关卡位置"], [id, order_id], all}} ] ,sheet =[ {["常量"], [ #f_column{type = atom, name = code, desc = "标签", mod = all} ,#f_column{type = term, name = val, desc = "值", add_list_sign = false, mod = all} ,#f_column{type = bstr, name = desc, desc = "描述", mod = all} ]} ,{["副本配置"], [ #f_column{type = int, name = id, desc = "章节ID", mod = all} ,#f_column{type = int, name = order_id, desc = "关卡序号", mod = all} ,#f_column{type = int, name = dun_id, desc = "副本id", mod = all} ,#f_column{type = term, name = unit_id, desc = "怪物ID", mod = all} ,#f_column{type = kv, name = type, desc = "是否BOSS关卡", kv_type = bool, val = "0", mod = all} ,#f_column{type = term, name = f_award, desc = "首通奖励", mod = all} ,#f_column{type = term, name = f_drops, desc = "首通掉落", mod = all} ,#f_column{type = term, name = auto_award, desc = "扫荡奖励", mod = all} ,#f_column{type = term, name = auto_drops, desc = "扫荡掉落", mod = all} ,#f_column{type = int, name = power, desc = "推荐战力", mod = client} ,#f_column{type = term, name = cond_info, desc = "3星条件", mod = all} ,#f_column{type = int, name = res_id, desc = "关卡资源ID", mod = client} ,#f_column{type = term, name = f_show_award, desc = "首通展示奖励", mod = client} ,#f_column{type = term, name = show_award, desc = "展示奖励", mod = client} ]} ,{["章节配置"], [ #f_column{type = int, name = id, desc = "章节ID", mod = all} ,#f_column{type = bstr, name = type, desc = "章节名称", mod = all} ,#f_column{type = term, name = cond_info, desc = "开启条件", mod = all} ,#f_column{type = term, name = check_open, desc = "开启关联", val = "[]", mod = all} ,#f_column{type = int, name = ico, desc = "图片资源ID", mod = client} ,#f_column{type = int, name = map_id, desc = "关卡地图ID", mod = client} ,#f_column{type = int, name = limit_id, desc = "显示条件", mod = client} ,#f_column{type = int, name = pos_id, desc = "关卡位置", mod = client} ,#f_column{type = int, name = bust_id, desc = "半身像资源ID", mod = client} ]} ,{["章节星数奖励"], [ #f_column{type = int, name = id, desc = "章节ID", mod = all} ,#f_column{type = int, name = award_id, desc = "奖励id", mod = all} ,#f_column{type = int, name = limit_star, desc = "星数要求", mod = all} ,#f_column{type = term, name = award, desc = "奖励", mod = all} ,#f_column{type = int, name = effect_id, desc = "宝箱特效id", mod = client} ]} ,{["星级条件"], [ #f_column{type = int, name = id, desc = "条件ID", mod = all} ,#f_column{type = term, name = condition, desc = "条件内容", mod = all} ,#f_column{type = bstr, name = type, desc = "描述", mod = all} ]} ,{["挑战次数购买"], [ #f_column{type = int, name = count, desc = "购买次数", mod = all} ,#f_column{type = int, name = limit_vip, desc = "VIP限制", mod = all} ,#f_column{type = int, name = cost, desc = "消耗钻石", mod = all} ]} ,{["关卡位置"], [ #f_column{type = int, name = id, desc = "位置ID", mod = client} ,#f_column{type = int, name = order_id, desc = "关卡序号", mod = client} ,#f_column{type = term, name = pos, desc = "坐标", mod = client} ,#f_column{type = term, name = start_pos, desc = "线的起始位置", mod = client} ,#f_column{type = term, name = end_pos, desc = "线的终点位置", mod = client} ,#f_column{type = term, name = bessel_pos_1, desc = "贝塞尔坐标1", mod = client} ,#f_column{type = term, name = bessel_pos_2, desc = "贝塞尔坐标2", mod = client} ]} ] }.