Files
fc/server/tools/gen_data/cfg/holiday_practise_tower_data.erl
2026-05-23 22:10:14 +08:00

61 lines
3.4 KiB
Erlang

%%----------------------------------------------------
%% 数据配置文件
%% @author linguohui<576623536@qq.com>
%%----------------------------------------------------
-module(holiday_practise_tower_data).
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = holiday_practise_tower_data
,lua_name = holiday_practise_tower_data
,js_name = holiday_practise_tower_data
,desc = "配置数据"
,source = "holiday_practise_tower_data.xml"
,target = "holiday_practise_tower_data.erl"
,splitv = 1
,head_rows = 1
,inc = []
,callback = [
{{get_const, undefined}, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~ts) -> ~ts; %% ~ts", [key, val, desc]}}
,{get_boss_id, cb_fun, handle, {get_tuple, ["奖池配置"], id, boss_id}}
,{get_buff_ext, cb_fun, handle, {get_tuple, ["奖池配置"], id, [power, attr_ext, attr_bids]}}
,{get_reward, cb_fun, handle, {get_tuple, ["奖池配置"], id, reward}}
,{{get_reward_rank, undefined}, cb_fun, handle, {get_fun, ["排行榜奖励"], "get_reward_rank(Rank) when Rank >= ~ts andalso Rank =< ~ts -> ~ts;", [min, max, items]}}
]
,callback_cli = [
{const, cb_fun_lua, handle, {key_val, [ "常量配置"], [key], all}}
,{tower, cb_fun_lua, handle, {key_val, ["奖池配置"], [id], all}}
,{rank_reward, cb_fun_lua, handle, {key_val, ["排行榜奖励"], [min], all}}
]
,callback_json = [
{const, cb_fun_json, handle, {key_val, [ "常量配置"], [key], all}}
,{tower, cb_fun_json, handle, {key_val, ["奖池配置"], [id], all}}
,{rank_reward, cb_fun_json, handle, {key_val, ["排行榜奖励"], [min], all}}
]
,sheet = [
{["常量配置"], [
#f_column{type = atom, name = key, desc = "", primary = true, mod = all}
,#f_column{type = term, name = val, desc = "", add_list_sign=false, mod = all}
,#f_column{type = str, name = desc, desc = "描述", mod = all}
]}
,{["奖池配置"], [
#f_column{type = int, name = id, desc = "关卡ID", mod = all}
,#f_column{type = int, name = boss_id, desc = "怪物组id", mod = all}
,#f_column{type = term, name = reward, desc = "奖励", add_list_sign = false, mod = all}
,#f_column{type = int, name = power, desc = "推荐战力", mod = all}
,#f_column{type = term, name = attr_ext, desc = "buff加成", add_list_sign = false, mod = all}
,#f_column{type = term, name = attr_bids, desc = "buff生效英雄", add_list_sign = false, mod = all}
,#f_column{type = int, name = star, desc = "怪物星级", mod = all}
,#f_column{type = int, name = face_id, desc = "怪物头像ID", mod = all}
,#f_column{type = str, name = mode_id, desc = "怪物模型ID", 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 = "奖励", add_list_sign = false, mod = all}
]}
]
}.