%%---------------------------------------------------- %% 新版活动BOSS配置文件 %% @author yzq %%---------------------------------------------------- -module(holiday_boss_new_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_boss_new_data ,lua_name = holiday_boss_new_data ,desc = "新版活动BOSS" ,source = "holiday_boss_new_data.xml" ,target = "holiday_boss_new_data.erl" ,inc = ["common.hrl"] ,callback = [ {{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}} ,{{match_difficulty, "1"}, cb_fun, handle, {get_fun, ["匹配战力难度"], "match_difficulty(Power) when Power >= ~ts andalso Power =< ~ts -> ~ts;", [min_power, max_power, difficulty]}} ,{max_difficulty, cb_fun, handle, {get_max, ["匹配战力难度"], difficulty}} ,{round_list, cb_fun, handle, {tuple_list, ["轮次配置"], [round, start_time, end_time]}} ,{{get_up_hero, "[]"}, cb_fun, handle, {get_tuple, ["轮次配置"], round, up_hero}} ,{get_unit_round, cb_fun, handle, {get_tuple, ["轮次配置"], round, unit_round}} ,{{get_add_skills, "[]"}, cb_fun, handle, {get_tuple, ["boss信息"], [round, difficulty, order_id], add_skills}} ,{get_unit_id, cb_fun, handle, {get_tuple, ["boss信息"], [round, difficulty, order_id], unit_id}} ,{{get_drop_ids, "[]"}, cb_fun, handle, {get_tuple, ["boss信息"], [round, difficulty, order_id], drop_ids}} ,{{get_order_type, "3"}, cb_fun, handle, {get_tuple, ["boss信息"], [round, difficulty, order_id], order_type}} ,{{get_round_reward, "[]"}, [{data_reverse, 1}], cb_fun, handle, {get_fun, ["每轮结算奖励"], "get_round_reward({~ts, OrderId}) when OrderId > ~ts -> ~ts;", [difficulty, order_id, reward]}} ] ,callback_cli = [ {const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{round_list, cb_fun_lua, handle, {key_val, ["轮次配置"], [round], [unit_round]}} ,{lev_reward_list, cb_fun_lua, handle, {type_get_val, ["每轮结算奖励"], [difficulty,sort_id], [sort_id,order_id,reward,show_reward]}} ,{change_boss_list, cb_fun_lua, handle, {type_get_val, ["boss信息"], [round,difficulty,order_type,order_id], [order_type,sort_id,order_id,add_skill_decs,star,head_id,name,master_lev,power]}} ,{explain, cb_fun_lua, handle, {key_val, ["玩法说明"], [id], all}} ] ,callback_json = [ {const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}} ,{round_list, cb_fun_json, handle, {key_val, ["轮次配置"], [round], [unit_round]}} ,{lev_reward_list, cb_fun_json, handle, {type_get_val, ["每轮结算奖励"], [difficulty,sort_id], [sort_id,order_id,reward,show_reward]}} ,{change_boss_list, cb_fun_json, handle, {type_get_val, ["boss信息"], [round,difficulty,order_type,order_id], [order_type,sort_id,order_id,add_skill_decs,star,head_id,name,master_lev,power]}} ,{explain, cb_fun_json, handle, {key_val, ["玩法说明"], [id], all}} ] ,sheet = [ {["常量配置"],[ #f_column{type = term, name = key, desc = "常量标识", add_list_sign = false,mod = all} ,#f_column{type = term, name = val, desc = "常量值", add_list_sign = false,mod= all} ,#f_column{type = bstr, name = desc, desc = "描述", mod = client} ]} ,{["轮次配置"], [ #f_column{type = int, name = round, desc = "轮次", mod = all} ,#f_column{type = term, name = start_time, desc = "开启时间", add_list_sign = false, mod = all} ,#f_column{type = term, name = end_time, desc = "结束时间", add_list_sign = false, mod = all} ,#f_column{type = term, name = up_hero, desc = "UP英雄", mod = all} ,#f_column{type = int, name = unit_round, desc = "怪物轮次", mod = all} ]} ,{["匹配战力难度"], [ #f_column{type = int, name = difficulty, desc = "难度ID", mod = all} ,#f_column{type = bstr, name = name, desc = "难度名称", mod = all} ,#f_column{type = int, name = min_power, desc = "战力下限", mod = server} ,#f_column{type = int, name = max_power, desc = "战力上限", mod = server} ]} ,{["boss信息"],[ #f_column{type = int, name = round, desc = "轮次ID", mod = alll} ,#f_column{type = int, name = difficulty, desc = "难度ID", mod = all} ,#f_column{type = int, name = order_id, desc = "关卡编号", mod = all} ,#f_column{type = kv, name = order_type, kv_type = [{"降级区", 1}, {"保级区", 2}, {"升级区", 3}], desc = "关卡类型", mod = all} ,#f_column{type = term, name = add_skills, desc = "我方增加的技能", val = "[]", mod = all} ,#f_column{type = int, name = unit_id, desc = "怪物id", mod = all} ,#f_column{type = term, name = drop_ids, desc = "掉落ID"} ,#f_column{type = term, type_func = str, name = add_skill_decs, desc = "关卡技能描述", mod = client, add_list_sign = false} ,#f_column{type = int, name = star, desc = "怪物星级", mod = client} ,#f_column{type = int, name = head_id, desc = "怪物头像id", mod = client} ,#f_column{type = int, name = head_half_id, desc = "怪物半身像id", mod = client} ,#f_column{type = bstr, name = name, desc = "怪物名字", mod = client} ,#f_column{type = int, name = sort_id, desc = "排序ID", mod = client} ,#f_column{type = int, name = master_lev, desc = "怪物等级", mod = client} ,#f_column{type = int, name = power, desc = "推荐战力", mod = client} ]} ,{["每轮结算奖励"],[ #f_column{type = int, name = difficulty, desc = "难度ID", mod = all} ,#f_column{type = int, name = order_id, desc = "关卡编号", mod = all} ,#f_column{type = term, name = reward, desc = "结算奖励", mod = all} ,#f_column{type = term, name = show_reward, desc = "展示奖励", mod = all} ,#f_column{type = int, name = sort_id, desc = "排序ID", mod = client} ]} ,{["玩法说明"], [ #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} ]} ] }.