117 lines
7.8 KiB
Erlang
117 lines
7.8 KiB
Erlang
%%----------------------------------------------------
|
|
%% 开学副本
|
|
%%
|
|
%% @author wujinhan<947537249@qq.com>
|
|
%%----------------------------------------------------
|
|
-module(holiday_term_begins_data).
|
|
-export([cfg/0, get/1]).
|
|
-include("data_config.hrl").
|
|
-include("common.hrl").
|
|
cfg() ->
|
|
#data_cfg{
|
|
name = holiday_term_begins_data
|
|
,lua_name = holiday_term_begins_data
|
|
,desc = "开学季副本"
|
|
,source = "holiday_term_begins_data.xml"
|
|
,target = "holiday_term_begins_data.erl"
|
|
,inc = ["common.hrl"]
|
|
,callback = [
|
|
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
|
|
,{round_list, cb_fun, handle, {tuple_list, ["轮次配置"], [round, start_time, end_time]}}
|
|
,{{get_award, "[]"}, cb_fun, handle, {get_tuple, ["收集奖励"], id, award}}
|
|
,{paper_award_list, cb_fun, handle, {tuple_list, ["收集奖励"], [id, count]}}
|
|
,{order_buy_cost, cb_fun, handle, {get_fun, ["购买次数"], "order_buy_cost(Count) when Count >= ~ts andalso Count =< ~ts -> ~ts;", [min, max, expend]}}
|
|
,{get_unit_round, cb_fun, handle, {get_tuple, ["轮次配置"], round, unit_round}}
|
|
,{{get_add_skills, "[]"}, cb_fun, handle, {get_tuple, ["关卡信息"], [unit_round, type, order_id], add_skills}}
|
|
,{get_unit_id, cb_fun, handle, {get_tuple, ["关卡信息"], [unit_round, type, order_id], unit_id}}
|
|
,{get_order_award, cb_fun, handle, {get_tuple, ["关卡信息"], unit_id, hit_award}}
|
|
,{match_boss, cb_fun, handle, {get_fun, ["BOSS匹配"], "match_boss({~ts, WorldLev}) when WorldLev >= ~ts andalso WorldLev =< ~ts -> {~ts, ~ts, ~ts, ~ts, ~ts};", [boss_round, min_lev, max_lev, unit_id, boss_id, fight_award, hit_award, coe]}}
|
|
,{rank_reward, cb_fun, handle, {get_fun, ["排名奖励"], "rank_reward(Rank) when Rank >= ~ts andalso Rank =< ~ts -> ~ts;", [rank1, rank2, award]}}
|
|
,{all_rank, cb_fun, handle, {tuple_list, ["排名奖励"], [rank1, rank2]}}
|
|
]
|
|
,callback_cli = [
|
|
{const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}}
|
|
,{round_info, cb_fun_lua, handle, {key_val, ["轮次配置"], [round], all}}
|
|
,{chapter_info, cb_fun_lua, handle, {type_get_val, ["关卡信息"], [unit_round, type, order_id], all}}
|
|
,{max_chapter_id, cb_fun_lua, handle, {type_get_max, ["关卡信息"], [unit_round], order_id}}
|
|
,{max_diff, cb_fun_lua, handle, {type_get_max, ["关卡信息"], [unit_round], type}}
|
|
,{boss_info, cb_fun_lua, handle, {type_get_val, ["BOSS匹配"], [boss_round, boss_id], all}}
|
|
,{cellect_reward_info, cb_fun_lua, handle, {list_val, ["收集奖励"], all}}
|
|
,{rank_reward, cb_fun_lua, handle, {list_val, ["排名奖励"], all}}
|
|
,{explain, cb_fun_lua, handle, {key_val, ["玩法说明"], [id], all}}
|
|
]
|
|
,callback_json = [
|
|
{const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}}
|
|
,{round_info, cb_fun_json, handle, {key_val, ["轮次配置"], [round], all}}
|
|
,{chapter_info, cb_fun_json, handle, {type_get_val, ["关卡信息"], [unit_round, type, order_id], all}}
|
|
,{max_chapter_id, cb_fun_json, handle, {type_get_max, ["关卡信息"], [unit_round], order_id}}
|
|
,{max_diff, cb_fun_json, handle, {type_get_max, ["关卡信息"], [unit_round], type}}
|
|
,{boss_info, cb_fun_json, handle, {type_get_val, ["BOSS匹配"], [boss_round, boss_id], all}}
|
|
,{cellect_reward_info, cb_fun_json, handle, {list_val, ["收集奖励"], all}}
|
|
,{rank_reward, cb_fun_json, handle, {list_val, ["排名奖励"], all}}
|
|
,{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 = all}
|
|
]}
|
|
,{["轮次配置"], [
|
|
#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 = int, name = unit_round, desc = "怪物轮次", mod = all}
|
|
,#f_column{type = int, name = boss_round, desc = "Boss轮次", mod = all}
|
|
,#f_column{type = bstr, name = action_time, desc = "活动日期", mod = client}
|
|
]}
|
|
,{["关卡信息"],[
|
|
#f_column{type = int, name = unit_round, desc = "怪物轮次", mod = all}
|
|
,#f_column{type = kv, name = type, kv_type = {?MODULE, get, [type]}, desc = "难度", mod = all}
|
|
,#f_column{type = int, name = order_id, desc = "关卡编号", mod = all}
|
|
,#f_column{type = bstr, name = order_name, desc = "关卡名字", mod = client}
|
|
,#f_column{type = term, name = add_skills, desc = "我方增加的技能", val = "[]", mod = server}
|
|
,#f_column{type = int, name = unit_id, desc = "怪物id", mod = all}
|
|
,#f_column{type = term, name = hit_award, desc = "击杀奖励", mod = all}
|
|
,#f_column{type = term, type_func = str, name = add_skill_decs, desc = "关卡技能描述", mod = client, add_list_sign = false}
|
|
,#f_column{type = int, name = power, desc = "推荐战力", mod = client}
|
|
,#f_column{type = bstr, name = order_res, desc = "关卡资源", mod = client}
|
|
]}
|
|
,{["BOSS匹配"], [
|
|
#f_column{type = int, name = boss_round, desc = "Boss轮次", mod = all}
|
|
,#f_column{type = int, name = boss_id, desc = "BossId", mod = all}
|
|
,#f_column{type = int, name = unit_id, desc = "怪物Id", mod = all}
|
|
,#f_column{type = int, name = min_lev, desc = "世界等级下限", mod = server}
|
|
,#f_column{type = int, name = max_lev, desc = "世界等级上限", mod = server}
|
|
,#f_column{type = term, name = fight_award, desc = "每次挑战奖励", mod = server}
|
|
,#f_column{type = term, name = hit_award, desc = "击杀奖励", mod = all}
|
|
,#f_column{type = bstr, name = boss_name, desc = "BOSS名字", mod = client}
|
|
,#f_column{type = float, name = coe, desc = "系数", mod = server}
|
|
]}
|
|
,{["收集奖励"], [
|
|
#f_column{type = int, name = id, desc = "序号", mod = all}
|
|
,#f_column{type = int, name = count, desc = "试卷数量", mod = all}
|
|
,#f_column{type = term, name = award, desc = "奖励", mod = all}
|
|
,#f_column{type = bstr, name = res, desc = "资源id", mod = all}
|
|
]}
|
|
,{["排名奖励"], [
|
|
#f_column{type = int, name = rank1, desc = "排名下限", mod = all}
|
|
,#f_column{type = int, name = rank2, desc = "排名上限", mod = all}
|
|
,#f_column{type = term, name = award, desc = "奖励", mod = all}
|
|
]}
|
|
,{["玩法说明"], [
|
|
#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}
|
|
]}
|
|
]
|
|
}.
|
|
|
|
get(type) ->
|
|
[
|
|
{"普通", 1},
|
|
{"困难", 2},
|
|
{"地狱", 3},
|
|
{"噩梦", 4}
|
|
].
|