Files

91 lines
5.2 KiB
Erlang
Raw Permalink Normal View History

2026-05-23 22:10:14 +08:00
%%%-------------------------------------------------------------------
%%% @author panhao
%%% @copyright (C) 2017, <COMPANY>
%%% @doc
%%% 神器铸造
%%% @end
%%% Created : 06. 三月 2017 15:21
%%%-------------------------------------------------------------------
-module(artifact_summon_data).
%% API
-export([cfg/0]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = artifact_summon_data
,lua_name = artifact_summon_data
,desc = "神器铸造配置数据"
,source = "artifact_summon_data.xml"
,target = "artifact_summon_data.erl"
,inc = ["artifact.hrl", "common.hrl"]
,callback = [
{{get_constant, "undefined"}, cb_fun, handle, {get_tuple, ["常量"], code, val}}
,{get_common_artifact, cb_fun, handle, {record_type, ["普通召唤", "普通十连抽随机库", "高级召唤", "高级十连抽随机库"], id, summon_artifact, all}}
,{get_type, cb_fun, handle, {tuple_type, ["召唤配置"], type, [id, weight, limit_count]}}
]
,callback_cli = [
{summon_const, cb_fun_lua, handle, {key_val, ["常量"], code, all}}
,{normal_data, cb_fun_lua, handle, {type_get_val, [ "普通召唤"], [rare_type,artifact_id], all}}
,{senior_data, cb_fun_lua, handle, {type_get_val, [ "高级召唤"], [rare_type,artifact_id], all}}
]
,callback_json = [
{summon_const, cb_fun_json, handle, {key_val, ["常量"], code, all}}
,{normal_data, cb_fun_json, handle, {type_get_val, [ "普通召唤"], [rare_type,artifact_id], all}}
,{senior_data, cb_fun_json, handle, {type_get_val, [ "高级召唤"], [rare_type,artifact_id], all}}
]
,sheet = [
{["常量"], [
#f_column{type = atom, name = code, desc = "标签", mod = all}
,#f_column{type = term, name = val, desc = "", add_list_sign = false, mod = all}
,#f_column{type = bstr, name = type, desc = "描述", mod = all}
]}
,{["召唤配置"], [
#f_column{type = kv, name = type, desc = "召唤类型", kv_type = [{"普通召唤", 1}, {"普通召唤第十次", 2}, {"高级召唤", 3}, {"高级召唤第十次", 4}], mod = all}
,#f_column{type = int, name = id, desc = "奖励组ID", mod = all}
,#f_column{type = int, name = weight, desc = "权重", mod = all}
,#f_column{type = int, name = limit_count, desc = "抽中后M以内必不出", val = "0", mod = all}
]}
,{["普通召唤"], [
#f_column{type = kv, name = rare_type, desc = "类型", mod = all, kv_type = artifact_summon_type}
,#f_column{type = int, name = id, desc = "奖励组ID", mod = all}
,#f_column{type = int, name = artifact_id, desc = "ID", mod = all}
,#f_column{type = int, name = number, desc = "数量", mod = server}
,#f_column{type = bstr, name = name, desc = "名称", mod = client}
,#f_column{type = int, name = weight, desc = "权重", mod = server}
,#f_column{type = int, name = limit_lev, desc = "等级限制", mod = all}
]}
,{["高级召唤"], [
#f_column{type = kv, name = rare_type, desc = "类型", mod = all, kv_type = artifact_summon_type}
,#f_column{type = int, name = id, desc = "奖励组ID", mod = all}
,#f_column{type = int, name = artifact_id, desc = "ID", mod = all}
,#f_column{type = int, name = number, desc = "数量", mod = server}
,#f_column{type = bstr, name = name, desc = "名称", mod = client}
,#f_column{type = int, name = weight, desc = "权重", mod = server}
,#f_column{type = int, name = limit_lev, desc = "等级限制", mod = all}
]}
,{["普通十连抽随机库"], [
#f_column{type = kv, name = rare_type, desc = "类型", mod = server, kv_type = artifact_summon_type}
,#f_column{type = int, name = id, desc = "奖励组ID", mod = all}
,#f_column{type = int, name = artifact_id, desc = "ID", mod = server}
,#f_column{type = int, name = number, desc = "数量", mod = server}
,#f_column{type = bstr, name = name, desc = "名称", mod = client}
,#f_column{type = int, name = weight, desc = "权重", mod = server}
,#f_column{type = int, name = limit_lev, desc = "等级限制", mod = all}
]}
,{["高级十连抽随机库"], [
#f_column{type = kv, name = rare_type, desc = "类型", mod = server, kv_type = artifact_summon_type}
,#f_column{type = int, name = id, desc = "奖励组ID", mod = all}
,#f_column{type = int, name = artifact_id, desc = "ID", mod = server}
,#f_column{type = int, name = number, desc = "数量", mod = server}
,#f_column{type = bstr, name = name, desc = "名称", mod = client}
,#f_column{type = int, name = weight, desc = "权重", mod = server}
,#f_column{type = int, name = limit_lev, desc = "等级限制", mod = all}
]}
]
}.