Files

98 lines
5.9 KiB
Erlang
Raw Permalink Normal View History

2026-05-23 22:10:14 +08:00
%%----------------------------------------------------
%% "星命塔"
%%
%% @author liufenglin 240039421@qq.com
%%----------------------------------------------------
-module(star_tower_data).
-author("Administrator").
-include("common.hrl").
-include("data_config.hrl").
%% API
-export([cfg/0]).
cfg() ->
#data_cfg{
name = star_tower_data
,lua_name = star_tower_data
,desc = "星命塔配置数据"
,source = "star_tower_data.xml"
,target = "star_tower_data.erl"
,inc = ["common.hrl", "attr.hrl"]
,callback = [
{{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], code, val}}
,{get_list, cb_fun, handle, {list, ["星命塔基础数据"]}}
,{get_unit_id, cb_fun, handle, {get_tuple, ["星命塔基础数据"], lev, unit_id}}
,{{get_power, 0}, cb_fun, handle, {get_tuple, ["星命塔基础数据"], lev, recommend}}
,{get_award, cb_fun, handle, {get_tuple, ["星命塔基础数据"], lev, [first_award, first_award2, add_honor, award]}}
,{{get_limit_dun_id, "0"}, cb_fun, handle, {get_tuple, ["星命塔基础数据"], lev, limit_dun_id}}
,{{get_buy_count, "0"}, cb_fun, handle, {get_tuple, ["VIP等级购买"], vip, buy_count}}
,{get_buy_count_expend, cb_fun, handle, {get_tuple, ["购买次数价格"], id, expend}}
,{max_tower, cb_fun, handle, {get_max, ["星命塔基础数据"], lev}}
,{get_all_first_award, cb_fun, handle, {list, ["层数首通奖励"]}}
,{get_first_award, cb_fun, handle, {get_tuple, ["层数首通奖励"], id, award}}
,{get_first_award_tower, cb_fun, handle, {get_tuple, ["层数首通奖励"], id, tower}}
,{get_first_award_id, cb_fun, handle, {get_tuple, ["层数首通奖励"], tower, id}}
,{{get_first_notice, "<<>>"}, cb_fun, handle, {get_tuple, ["层数首通奖励"], id, notice}}
,{{reward_role, 0}, cb_fun, handle, {get_tuple, ["奖励补发"], [rid,srv_id], num}}
]
,callback_cli = [
{tower_const, cb_fun_lua, handle, {key_val, [ "常量"], [code], all}}
, {tower_base, cb_fun_lua, handle, {key_val, [ "星命塔基础数据"], [lev], all}}
, {tower_vip, cb_fun_lua, handle, {key_val, [ "VIP等级购买"], [vip], all}}
, {tower_buy, cb_fun_lua, handle, {key_val, [ "购买次数价格"], [id], all}}
, {award_list, cb_fun_lua, handle, {key_val, [ "奖励"], [id], all}}
,{get_floor_award, cb_fun_lua, handle, {key_val, ["层数首通奖励"], [id], all}}
]
,callback_json = [
{tower_const, cb_fun_json, handle, {key_val, [ "常量"], [code], all}}
, {tower_base, cb_fun_json, handle, {key_val, [ "星命塔基础数据"], [lev], all}}
, {tower_vip, cb_fun_json, handle, {key_val, [ "VIP等级购买"], [vip], all}}
, {tower_buy, cb_fun_json, handle, {key_val, [ "购买次数价格"], [id], all}}
, {award_list, cb_fun_json, handle, {key_val, [ "奖励"], [id], all}}
,{get_floor_award, 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, add_list_sign = false}
,#f_column{type = str, name = desc, desc = "描述", mod = all}
]}
,{["星命塔基础数据"], [
#f_column{type = int, name = lev, desc = "", mod = all}
,#f_column{type = bstr, name = name, desc = "名称", mod = all}
,#f_column{type = term, name = first_award, desc = "首通奖励", val = "[]", mod = all}
,#f_column{type = term, name = first_award2, desc = "首通固定奖励", val = "[]", mod = all}
,#f_column{type = term, name = award, desc = "奖励", mod = all}
,#f_column{type = int, name = unit_id, desc = "怪物id", mod = all}
,#f_column{type = int, name = add_honor, desc = "解锁称号", val = "0", mod = all}
,#f_column{type = bstr, name = desc, desc = "描述", mod = client}
,#f_column{type = int, name = recommend, desc = "推荐战力", val = "0", mod = client}
,#f_column{type = term, name = first_show, desc = "首通奖励展示", val = "0", mod = client}
,#f_column{type = term, name = lock_show, desc = "解锁显示", val = "{}", mod = client}
,#f_column{type = int, name = limit_dun_id, desc = "解锁关卡ID", val = "0", mod = all}
,#f_column{type = term, name = item_show, desc = "核心展示", val = "{}", mod = client}
]}
,{["VIP等级购买"], [
#f_column{type = int, name = vip, desc = "VIP等级", mod = all}
,#f_column{type = int, name = buy_count, desc = "可购买次数", mod = all}
]}
,{["购买次数价格"], [
#f_column{type = int, name = id, desc = "次数", mod = all}
,#f_column{type = term, name = expend, desc = "消耗", mod = all}
]}
,{["层数首通奖励"], [
#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = tower, desc = "层数", mod = all}
,#f_column{type = term, name = award, desc = "奖励", mod = all}
,#f_column{type = bstr, name = notice, desc = "公告内容", mod = all}
]}
,{["奖励补发"], [
#f_column{type = int, name = rid, desc = "角色ID", mod = all}
,#f_column{type = bstr, name = srv_id, desc = "服务器ID", mod = all}
,#f_column{type = int, name = num, desc = "领取奖励个数", mod = all}
]}
]
}.