93 lines
5.7 KiB
Erlang
93 lines
5.7 KiB
Erlang
|
|
|
||
|
|
%%----------------------------------------------------
|
||
|
|
%% 跨服竞技场配置文件
|
||
|
|
%% @author yzq
|
||
|
|
%%----------------------------------------------------
|
||
|
|
-module(arena_cluster_data).
|
||
|
|
-export([cfg/0]).
|
||
|
|
-include("data_config.hrl").
|
||
|
|
-include("common.hrl").
|
||
|
|
cfg() ->
|
||
|
|
#data_cfg{
|
||
|
|
name = arena_cluster_data
|
||
|
|
,lua_name = arena_cluster_data
|
||
|
|
,desc = "跨服竞技场"
|
||
|
|
,source = "arena_cluster_data.xml"
|
||
|
|
,target = "arena_cluster_data.erl"
|
||
|
|
,inc = ["common.hrl"]
|
||
|
|
,callback = [
|
||
|
|
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
|
||
|
|
,{get_ref, cb_fun, handle, {get_record, ["刷新范围"], id, new_map, all}}
|
||
|
|
,{get_robot, cb_fun, handle, {get_tuple, ["专用机器人"], robot_id, robot_ids}}
|
||
|
|
,{{rank_reward, undefined}, cb_fun, handle, {get_fun, ["赛季排行奖励"], "rank_reward(Num) when Num >= ~ts andalso Num =< ~ts -> ~ts;", [min, max, items]}}
|
||
|
|
,{{get_turn_reward, undefined}, cb_fun, handle, {get_fun, ["翻牌奖励"], "get_turn_reward({Score, ~ts}) when Score >= ~ts andalso Score =< ~ts -> {~ts, ~ts, ~ts};", [result_type, min, max, first_turn, second_turn, third_turn]}}
|
||
|
|
,{turn_reward_list, cb_fun, handle, {tuple_type, ["翻牌随机库"], group_id, [reward, val, rate]}}
|
||
|
|
,{turn_reward_limit, cb_fun, handle, {get_tuple, ["翻牌随机库限制"], group_id, hit_not_m_times}}
|
||
|
|
,{{day_box_reward, "[]"}, cb_fun, handle, {get_tuple, ["每日宝箱奖励"], num, items}}
|
||
|
|
,{day_box_list, cb_fun, handle, {list, ["每日宝箱奖励"]}}
|
||
|
|
]
|
||
|
|
,callback_cli = [
|
||
|
|
{const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}}
|
||
|
|
,{daily_award, cb_fun_lua, handle, {key_val, ["每日宝箱奖励"], num, [items, effect_id]}}
|
||
|
|
,{rank_award, cb_fun_lua, handle, {key_val, ["赛季排行奖励"], max, [max, min, items]}}
|
||
|
|
,{explain, cb_fun_lua, handle, {key_val, ["玩法说明"], [id], all}}
|
||
|
|
]
|
||
|
|
,callback_json = [
|
||
|
|
{const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}}
|
||
|
|
,{daily_award, cb_fun_json, handle, {key_val, ["每日宝箱奖励"], num, [items, effect_id]}}
|
||
|
|
,{rank_award, cb_fun_json, handle, {key_val, ["赛季排行奖励"], max, [max, min, items]}}
|
||
|
|
,{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 = id, desc = "编号", mod = all}
|
||
|
|
,#f_column{type = term, name = score_range, desc = "积分范围", mod = all}
|
||
|
|
,#f_column{type = term, name = power_range, desc = "战力范围", mod = all}
|
||
|
|
,#f_column{type = term, name = robot, desc = "机器人匹配", mod = all}
|
||
|
|
,#f_column{type = term, name = robot_power, desc = "机器人属性修正", mod = all}
|
||
|
|
]}
|
||
|
|
,{["专用机器人"],[
|
||
|
|
#f_column{type = int, name = robot_id, desc = "ID", mod = all}
|
||
|
|
,#f_column{type = term, name = robot_ids, desc = "机器人ID", mod = all}
|
||
|
|
]}
|
||
|
|
,{["翻牌奖励"], [
|
||
|
|
#f_column{type = int, name = max, desc = "积分上限", mod = all}
|
||
|
|
,#f_column{type = int, name = min, desc = "积分下限", mod = all}
|
||
|
|
,#f_column{type = kv, kv_type = [{"胜利", 1}, {"失败", 2}], name = result_type, desc = "类型", mod = all}
|
||
|
|
,#f_column{type = term, name = first_turn, desc = "第一次翻牌", mod = all}
|
||
|
|
,#f_column{type = term, name = second_turn, desc = "第二次翻牌", mod = all}
|
||
|
|
,#f_column{type = term, name = third_turn, desc = "第三次翻牌", mod = all}
|
||
|
|
]}
|
||
|
|
,{["翻牌随机库"], [
|
||
|
|
#f_column{type = int, name = group_id, desc = "随机库ID", mod = all}
|
||
|
|
,#f_column{type = term, name = reward, desc = "奖励", mod = all}
|
||
|
|
,#f_column{type = term, name = val, desc = "价值", mod = all}
|
||
|
|
,#f_column{type = int, name = rate, desc = "权重", mod = all}
|
||
|
|
]}
|
||
|
|
,{["翻牌随机库限制"], [
|
||
|
|
#f_column{type = int, name = group_id, desc = "随机库ID", mod = all}
|
||
|
|
,#f_column{type = int, name = hit_not_m_times, desc = "抽中后M次内必不触发", mod = all}
|
||
|
|
]}
|
||
|
|
,{["每日宝箱奖励"], [
|
||
|
|
#f_column{type = int, name = num, desc = "挑战次数", mod = all}
|
||
|
|
,#f_column{type = term, name = items, desc = "奖励", mod = all}
|
||
|
|
,#f_column{type = int, name = effect_id, desc = "宝箱特效ID", mod = client}
|
||
|
|
]}
|
||
|
|
,{["赛季排行奖励"], [
|
||
|
|
#f_column{type = int, name = min, desc = "排名上限", mod = all}
|
||
|
|
,#f_column{type = int, name = max, desc = "排名下限", mod = all}
|
||
|
|
,#f_column{type = term, name = items, 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}
|
||
|
|
]}
|
||
|
|
]
|
||
|
|
}.
|