107 lines
6.8 KiB
Erlang
107 lines
6.8 KiB
Erlang
|
|
%%----------------------------------------------------
|
|
%% 元素神殿配置文件
|
|
%% @author yzq
|
|
%%----------------------------------------------------
|
|
-module(element_temple_data).
|
|
-export([cfg/0]).
|
|
-include("data_config.hrl").
|
|
-include("common.hrl").
|
|
cfg() ->
|
|
#data_cfg{
|
|
name = element_temple_data
|
|
,lua_name = element_temple_data
|
|
,desc = "元素神殿"
|
|
,source = "element_temple_data.xml"
|
|
,target = "element_temple_data.erl"
|
|
,inc = ["common.hrl"]
|
|
,callback = [
|
|
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
|
|
,{rank_reward, cb_fun, handle, {get_fun, ["排行奖励"], "rank_reward(Idx) when Idx >= ~ts andalso Idx =< ~ts -> ~ts;", [min, max, items]}}
|
|
,{group, cb_fun, handle, {get_tuple, ["副本配置"], type, group}}
|
|
,{{open_day, "[]"}, cb_fun, handle, {get_tuple, ["副本配置"], type, open_day}}
|
|
,{get_boss, cb_fun, handle, {get_tuple, ["关卡配置"], [group, id], unit_id}}
|
|
,{get_limit, cb_fun, handle, {get_tuple, ["关卡配置"], [group, id], limit}}
|
|
,{first_reward, cb_fun, handle, {get_tuple, ["关卡配置"], [group, id], first_reward}}
|
|
,{auto_reward, cb_fun, handle, {get_tuple, ["关卡配置"], [group, id], auto_reward}}
|
|
,{{buy_num, undefined}, cb_fun, handle, {get_record, ["每日挑战次数购买"], num, new_map, all}}
|
|
,{{add_camp_skill, "[]"}, cb_fun, handle, {get_tuple, ["关卡配置"], [group, id], camp_skill}}
|
|
,{buy_privilege_max, cb_fun, handle, {get_max, ["特权挑战购买"], num}}
|
|
,{{buy_privilege_num, undefined}, cb_fun, handle, {get_tuple, ["特权挑战购买"], num, cost}}
|
|
]
|
|
,callback_cli = [
|
|
{const, cb_fun_lua, handle, {key_val, ["常量配置"], key, [val, desc]}}
|
|
,{base, cb_fun_lua, handle, {key_val, ["副本配置"], [type], all}}
|
|
,{customs, cb_fun_lua, handle, {type_get_val, ["关卡配置"], [group, id], all}}
|
|
,{buy_count, cb_fun_lua, handle, {key_val, ["每日挑战次数购买"], [num], all}}
|
|
,{privilege, cb_fun_lua, handle, {key_val, ["特权挑战购买"], [num], cost}}
|
|
,{award, cb_fun_lua, handle, {list_val, ["排行奖励"], all}}
|
|
,{monster, cb_fun_lua, handle, {key_val, ["怪物展示"], [group], all}}
|
|
,{explain, cb_fun_lua, handle, {key_val, ["规则说明"], [id], all}}
|
|
]
|
|
,callback_json = [
|
|
{const, cb_fun_json, handle, {key_val, ["常量配置"], key, [val, desc]}}
|
|
,{base, cb_fun_json, handle, {key_val, ["副本配置"], [type], all}}
|
|
,{customs, cb_fun_json, handle, {type_get_val, ["关卡配置"], [group, id], all}}
|
|
,{buy_count, cb_fun_json, handle, {key_val, ["每日挑战次数购买"], [num], all}}
|
|
,{privilege, cb_fun_json, handle, {key_val, ["特权挑战购买"], [num], cost}}
|
|
,{award, cb_fun_json, handle, {list_val, ["排行奖励"], all}}
|
|
,{monster, cb_fun_json, handle, {key_val, ["怪物展示"], [group], 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 = client}
|
|
]}
|
|
,{["副本配置"],[
|
|
#f_column{type = kv, name = type, desc = "副本类型", kv_type = partner_camp_type, mod = all}
|
|
,#f_column{type = bstr, name = name, desc = "副本名称", mod= all}
|
|
,#f_column{type = term, name = group, desc = "怪物池", mod= all}
|
|
,#f_column{type = term, name = open_day, desc = "开启时间", mod = all}
|
|
,#f_column{type = int, name = res_id, desc = "资源id", mod = client}
|
|
]}
|
|
,{["关卡配置"],[
|
|
#f_column{type = int, name = group, desc = "怪物ID", mod = all}
|
|
,#f_column{type = int, name = id, desc = "关卡数", mod = all}
|
|
,#f_column{type = term, name = limit, desc = "挑战条件", mod = all}
|
|
,#f_column{type = bstr, name = limit_desc, desc = "条件描述", mod = client}
|
|
,#f_column{type = int, name = unit_id, desc = "战斗怪ID", mod = all}
|
|
,#f_column{type = term, name = first_reward, desc = "首通奖励", mod = all}
|
|
,#f_column{type = term, name = auto_reward, desc = "扫荡奖励", mod = all}
|
|
,#f_column{type = int, name = power, desc = "推荐战力", mod = client}
|
|
,#f_column{type = term, name = camp_skill, desc = "玩家效果", mod = all}
|
|
,#f_column{type = int, name = limit_dun_id, desc = "显示最大关卡数", mod = client}
|
|
]}
|
|
,{["每日挑战次数购买"], [
|
|
#f_column{type = int, name = num, desc = "购买次数", mod = all}
|
|
,#f_column{type = int, name = vip, desc = "VIP限制", mod = all}
|
|
,#f_column{type = int, name = cost, desc = "消耗钻石", mod = all}
|
|
]}
|
|
,{["特权挑战购买"], [
|
|
#f_column{type = int, name = num, desc = "购买次数", mod = all}
|
|
,#f_column{type = int, name = cost, desc = "消耗钻石", mod = all}
|
|
]}
|
|
,{["排行奖励"], [
|
|
#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 = group, desc = "怪物ID", mod = client}
|
|
,#f_column{type = bstr, name = name, desc = "怪物名称", mod = client}
|
|
,#f_column{type = bstr, name = bust_id, desc = "半身像", mod = client}
|
|
,#f_column{type = int, name = head_id, desc = "头像", mod = client}
|
|
,#f_column{type = bstr, name = attr_desc, desc = "属性克制描述", mod = client}
|
|
,#f_column{type = term, name = skill_list, desc = "技能列表", mod = client}
|
|
,#f_column{type = bstr, name = combat_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}
|
|
]}
|
|
]
|
|
}.
|