185 lines
13 KiB
Erlang
185 lines
13 KiB
Erlang
%%----------------------------------------------------
|
|
%% "精英赛"
|
|
%%
|
|
%% @author liufenglin 240039421@qq.com
|
|
%%----------------------------------------------------
|
|
-module(arena_elite_data).
|
|
|
|
-export([cfg/0]).
|
|
|
|
-include("data_config.hrl").
|
|
-include("common.hrl").
|
|
|
|
cfg() ->
|
|
#data_cfg{
|
|
name = arena_elite_data
|
|
,lua_name = arena_elite_data
|
|
,desc = "精英赛配置数据"
|
|
,source = "arena_elite_data.xml"
|
|
,target = "arena_elite_data.erl"
|
|
,inc = ["partner.hrl", "common.hrl", "attr.hrl"]
|
|
,callback = [
|
|
{{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], code, val}}
|
|
,{get_all_award_ids, cb_fun, handle, {list, ["段位"]}}
|
|
,{get_ref_lev, cb_fun, handle, {get_tuple, ["段位"], id, ref_lev}}
|
|
,{get_all_score, cb_fun, handle, {get_tuple, ["段位"], id, all_exp}}
|
|
,{get_lev_name, cb_fun, handle, {get_tuple, ["段位"], id, name}}
|
|
,{get_award, cb_fun, handle, {get_tuple, ["段位"], id, award}}
|
|
,{get_promoted_info, cb_fun, handle, {get_tuple, ["段位"], id, promoted_info}}
|
|
,{get_lev_award, cb_fun, handle, {get_tuple, ["段位"], id, lev_award}}
|
|
,{get_need_promoted, cb_fun, handle, {get_tuple, ["段位"], id, need_promoted}}
|
|
,{get_need_exp, cb_fun, handle, {get_tuple, ["段位"], id, need_exp}}
|
|
,{get_init_exp, cb_fun, handle, {get_tuple, ["段位"], id, [init_exp, add_exp]}}
|
|
,{get_del_exp, cb_fun, handle, {get_tuple, ["段位"], id, del_exp}}
|
|
,{get_next_lev, cb_fun, handle, {get_tuple, ["段位"], id, next_id}}
|
|
,{get_macth_limit_score, cb_fun, handle, {get_tuple, ["段位"], id, macth_limit_score}}
|
|
,{get_macth_limit_match_power, cb_fun, handle, {get_tuple, ["段位"], id, macth_limit_match_power}}
|
|
,{{get_macth_limit_power, "undefined"}, cb_fun, handle, {get_tuple, ["段位"], id, macth_limit_power}}
|
|
|
|
,{get_combat_award1, cb_fun, handle, {get_tuple, ["段位"], id, king_win_award}}
|
|
,{get_combat_award2, cb_fun, handle, {get_tuple, ["段位"], id, king_lose_award}}
|
|
,{get_combat_award3, cb_fun, handle, {get_tuple, ["段位"], id, normal_win_award}}
|
|
,{get_combat_award4, cb_fun, handle, {get_tuple, ["段位"], id, normal_lose_award}}
|
|
|
|
,{{get_combat_drop_id1, "[]"}, cb_fun, handle, {get_tuple, ["段位"], id, normal_random_win_award}}
|
|
,{{get_combat_drop_id2, "[]"}, cb_fun, handle, {get_tuple, ["段位"], id, normal_random_lose_award}}
|
|
,{{get_combat_drop_id3, "[]"}, cb_fun, handle, {get_tuple, ["段位"], id, king_random_win_award}}
|
|
,{{get_combat_drop_id4, "[]"}, cb_fun, handle, {get_tuple, ["段位"], id, king_random_lose_award}}
|
|
|
|
,{{get_hallows_look, "0"}, cb_fun, handle, {get_tuple, ["段位"], id, hallows_look_id}}
|
|
,{{get_avatar_id, "0"}, cb_fun, handle, {get_tuple, ["段位"], id, avatar_id}}
|
|
,{{get_honor_id, "0"}, cb_fun, handle, {get_tuple, ["新排行奖励"], rank, honor_id}}
|
|
,{{get_rank_limit_lev, "0"}, cb_fun, handle, {get_tuple, ["新排行奖励"], rank, rank_limit_lev}}
|
|
|
|
% ,{{get_rand_pro, "0"}, cb_fun, handle, {get_tuple, ["战斗宣言"], id, pro}}
|
|
,{init_manifesto, cb_fun, handle, {tuple_list, ["战斗宣言"], [id, msg]}}
|
|
|
|
,{{get_cd_time, "120"}, cb_fun, handle, {get_tuple, ["匹配次数"], count, cd_time}}
|
|
,{get_buy_count, cb_fun, handle, {get_tuple, ["次数购买"], count, [cost, need_vip]}}
|
|
,{get_daily_reward_list, cb_fun, handle, {list, ["每日奖励"]}}
|
|
,{get_daily_reward, cb_fun, handle, {get_tuple, ["每日奖励"], id, [type, num, reward]}}
|
|
,{get_targer_score, cb_fun, handle, {get_fun, ["期望段位"], "get_targer_score(Power) when Power >= ~ts andalso Power =< ~ts -> ~ts;", [min_power, max_power, targer_score]}}
|
|
,{{get_rank_award, "undefined"}, cb_fun, handle, {get_fun, ["排行榜"], "get_rank_award(Rank) when Rank >= ~ts andalso Rank =< ~ts -> ~ts;", [min_rank, max_rank, award]}}
|
|
,{{get_rank_hallows, "0"}, cb_fun, handle, {get_fun, ["排行榜"], "get_rank_hallows(Rank) when Rank >= ~ts andalso Rank =< ~ts -> ~ts;", [min_rank, max_rank, hallows_look_id]}}
|
|
,{{get_rank_award_limit, "0"}, cb_fun, handle, {get_fun, ["排行榜"], "get_rank_award_limit(Rank) when Rank >= ~ts andalso Rank =< ~ts -> ~ts;", [min_rank, max_rank, rank_award_limit]}}
|
|
]
|
|
,callback_cli = [
|
|
{elite_const, cb_fun_lua, handle, {key_val, [ "常量"], [code], all}}
|
|
,{elite_level, cb_fun_lua, handle, {key_val, [ "段位"], [id], all}}
|
|
,{elite_last_level, cb_fun_lua, handle, {key_val, [ "段位"], [next_id], [id]}}
|
|
,{elite_rank_reward, cb_fun_lua, handle, {key_val, [ "排行榜"], [min_rank], all}}
|
|
,{elite_buy, cb_fun_lua, handle, {key_val, [ "次数购买"], [count], all}}
|
|
,{explain, cb_fun_lua, handle, {key_val, ["玩法说明"], [id], all}}
|
|
,{explain2, cb_fun_lua, handle, {key_val, ["段位说明"], [id], all}}
|
|
,{face, cb_fun_lua, handle, {key_val, ["战斗宣言"], [id], all}}
|
|
,{zone, cb_fun_lua, handle, {key_val, ["赛区"], [id], all}}
|
|
]
|
|
,callback_json = [
|
|
{elite_const, cb_fun_json, handle, {key_val, [ "常量"], [code], all}}
|
|
,{elite_level, cb_fun_json, handle, {key_val, [ "段位"], [id], all}}
|
|
,{elite_last_level, cb_fun_json, handle, {key_val, [ "段位"], [next_id], [id]}}
|
|
,{elite_rank_reward, cb_fun_json, handle, {key_val, [ "排行榜"], [min_rank], all}}
|
|
,{elite_buy, cb_fun_json, handle, {key_val, [ "次数购买"], [count], all}}
|
|
,{explain, cb_fun_json, handle, {key_val, ["玩法说明"], [id], all}}
|
|
,{explain2, cb_fun_json, handle, {key_val, ["段位说明"], [id], all}}
|
|
,{face, cb_fun_json, handle, {key_val, ["战斗宣言"], [id], all}}
|
|
,{zone, cb_fun_json, handle, {key_val, ["赛区"], [id], all}}
|
|
,{reward, cb_fun_json, handle, {key_val, ["每日奖励"], [id], all}}
|
|
]
|
|
,sheet = [
|
|
{["常量"], [
|
|
#f_column{type = atom, name = code, desc = "标签", mod = all}
|
|
,#f_column{type = term, name = val, desc = "值", mod = all,val_cli="{}", add_list_sign = false}
|
|
,#f_column{type = bstr, name = desc, desc = "名字", mod = client}
|
|
]}
|
|
,{["段位"], [
|
|
#f_column{type = int, name = id, desc = "ID", mod = all}
|
|
,#f_column{type = int, name = next_id, desc = "下一段位", mod = all}
|
|
,#f_column{type = bstr, name = name, desc = "段位名", mod = all}
|
|
,#f_column{type = atom, name = ico, desc = "段位图标", val_cli="elitemmatch_icon_01", mod = client}
|
|
,#f_column{type = atom, name = name_ico, desc = "段位名字图标", val_cli="txt_cn_elitemmatch_icon_01", mod = client}
|
|
,#f_column{type = atom, name = little_ico, desc = "段位图标(小)", mod = client}
|
|
,#f_column{type = atom, name = little_name_ico, desc = "段位名字图标(小)", mod = client}
|
|
,#f_column{type = kv, name = need_promoted, desc = "是否晋级赛", kv_type = bool, mod = all}
|
|
,#f_column{type = int, name = all_exp, desc = "基础积分", mod = all}
|
|
,#f_column{type = int, name = need_exp, desc = "升级所需经验", mod = all}
|
|
,#f_column{type = int, name = init_exp, desc = "缓冲经验", mod = all}
|
|
,#f_column{type = int, name = add_exp, desc = "升至下级增加经验", mod = all}
|
|
,#f_column{type = int, name = del_exp, desc = "晋级失败扣除经验", mod = all}
|
|
,#f_column{type = term, name = macth_limit_match_power, desc = "隐藏战力匹配筛选范围", mod = all}
|
|
,#f_column{type = term, name = macth_limit_score, desc = "积分匹配筛选范围", mod = all}
|
|
,#f_column{type = term, name = macth_limit_power, desc = "战力匹配筛选范围", mod = all}
|
|
,#f_column{type = term, name = lev_award, desc = "段位首达奖励", mod = all}
|
|
,#f_column{type = term, name = normal_win_award, desc = "常规赛挑战胜利奖励", mod = server}
|
|
,#f_column{type = term, name = normal_lose_award, desc = "常规赛挑战失败奖励", mod = server}
|
|
,#f_column{type = term, name = king_win_award, desc = "王者赛挑战成功奖励", mod = server}
|
|
,#f_column{type = term, name = king_lose_award, desc = "王者赛挑战失败奖励", mod = server}
|
|
,#f_column{type = term, name = normal_random_win_award, desc = "常规赛挑战胜利随机掉落奖励", mod = server}
|
|
,#f_column{type = term, name = normal_random_lose_award, desc = "常规赛挑战失败随机掉落奖励", mod = server}
|
|
,#f_column{type = term, name = king_random_win_award, desc = "王者赛挑战成功随机掉落奖励", mod = server}
|
|
,#f_column{type = term, name = king_random_lose_award, desc = "王者赛挑战失败随机掉落奖励", mod = server}
|
|
,#f_column{type = term, name = award, desc = "赛季结算奖励", mod = all}
|
|
,#f_column{type = int, name = ref_lev, desc = "下赛季段位继承", mod = all}
|
|
,#f_column{type = term, name = promoted_info, desc = "晋级赛几盘几胜", val_cli="{}", add_list_sign = false, mod = all}
|
|
,#f_column{type = int, name = hallows_look_id, desc = "结算神器幻化", mod = all}
|
|
,#f_column{type = int, name = avatar_id, desc = "结算头像框奖励", mod = all}
|
|
,#f_column{type = term, name = award_client, desc = "赛季结算奖励(客户端显示)", mod = client}
|
|
]}
|
|
,{["期望段位"], [
|
|
#f_column{type = int, name = min_power, desc = "期望战力下限", mod = all}
|
|
,#f_column{type = int, name = max_power, desc = "期望战力上限", mod = all}
|
|
,#f_column{type = int, name = targer_score, desc = "期望段位分", mod = all}
|
|
]}
|
|
,{["匹配次数"], [
|
|
#f_column{type = int, name = count, desc = "次数", mod = all}
|
|
,#f_column{type = int, name = cd_time, desc = "时间间隔", mod = all}
|
|
]}
|
|
,{["新排行奖励"], [
|
|
#f_column{type = int, name = rank, desc = "排名", mod = all}
|
|
,#f_column{type = int, name = honor_id, desc = "结算称号", mod = all}
|
|
,#f_column{type = int, name = rank_limit_lev, desc = "要求段位", mod = all}
|
|
]}
|
|
,{["排行榜"], [
|
|
#f_column{type = int, name = min_rank, desc = "排名上限", mod = all}
|
|
,#f_column{type = int, name = max_rank, desc = "排名下限", mod = all}
|
|
,#f_column{type = int, name = rank_award_limit, desc = "领奖所需段位ID", val = "0", mod = all}
|
|
,#f_column{type = term, name = award, desc = "赛季结算奖励", mod = all}
|
|
,#f_column{type = int, name = hallows_look_id, desc = "神器幻化ID", val = "0", mod = all}
|
|
,#f_column{type = term, name = show_award, desc = "赛季结算奖励(客户端显示)", val_cli="{}", mod = all}
|
|
]}
|
|
,{["次数购买"], [
|
|
#f_column{type = int, name = count, desc = "购买次数", mod = all}
|
|
,#f_column{type = term, name = cost, desc = "购买消耗", mod = all}
|
|
,#f_column{type = int, name = need_vip, desc = "所需vip等级", 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}
|
|
]}
|
|
,{["段位说明"], [
|
|
#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 = "ID", primary = true, mod = client}
|
|
,#f_column{type = str, name = msg, desc = "文本", mod = client}
|
|
,#f_column{type = str, name = name, desc = "表情名字", mod = client}
|
|
,#f_column{type = str, name = text, desc = "祝福语", mod = client}
|
|
]}
|
|
,{["赛区"], [
|
|
#f_column{type = int, name = id, desc = "ID", primary = true, mod = client}
|
|
,#f_column{type = str, name = name, desc = "赛区名", mod = client}
|
|
,#f_column{type = str, name = icon, desc = "图标", mod = client}
|
|
]}
|
|
,{["每日奖励"], [
|
|
#f_column{type = int, name = id, desc = "ID", primary = true, mod = all}
|
|
,#f_column{type = int, name = type, desc = "条件类型", mod = all}
|
|
,#f_column{type = int, name = num, desc = "次数", mod = all}
|
|
,#f_column{type = term, name = reward, desc = "奖励", mod = all}
|
|
,#f_column{type = bstr, name = desc, desc = "描述", mod = client}
|
|
]}
|
|
]
|
|
}.
|