Files
fc/server/tools/gen_data/lua_data/attr_data.lua
T
2026-05-23 22:10:14 +08:00

336 lines
8.5 KiB
Lua

----------------------------------------------------
-- 此文件由数据工具生成
-- attr配置数据--attr_data.xml
--------------------------------------
Config = Config or {}
Config.AttrData = Config.AttrData or {}
-- -------------------id_to_key_start-------------------
Config.AttrData.data_id_to_key_length = 29
Config.AttrData.data_id_to_key = {
[101] = "atk",
[102] = "def_p",
[103] = "def_s",
[104] = "hp_max",
[105] = "hp",
[106] = "speed",
[107] = "def",
[111] = "hit_rate",
[112] = "dodge_rate",
[113] = "crit_rate",
[114] = "crit_ratio",
[115] = "hit_magic",
[116] = "dodge_magic",
[117] = "tenacity",
[118] = "atk_per",
[119] = "def_per",
[120] = "hp_max_per",
[121] = "dam",
[122] = "res",
[123] = "cure",
[124] = "be_cure",
[125] = "dam_p",
[126] = "dam_s",
[127] = "res_p",
[128] = "res_s",
[129] = "speed_per",
[130] = "def_p_per",
[131] = "def_s_per",
[132] = "toughness"
}
Config.AttrData.data_id_to_key_fun = function(key)
local data=Config.AttrData.data_id_to_key[key]
if DATA_DEBUG and data == nil then
print('(Config.AttrData.data_id_to_key['..key..'])not found') return
end
return data
end
-- -------------------id_to_key_end---------------------
-- -------------------key_to_id_start-------------------
Config.AttrData.data_key_to_id_length = 29
Config.AttrData.data_key_to_id = {
["atk"] = 101,
["def_p"] = 102,
["def_s"] = 103,
["hp_max"] = 104,
["hp"] = 105,
["speed"] = 106,
["def"] = 107,
["hit_rate"] = 111,
["dodge_rate"] = 112,
["crit_rate"] = 113,
["crit_ratio"] = 114,
["hit_magic"] = 115,
["dodge_magic"] = 116,
["tenacity"] = 117,
["atk_per"] = 118,
["def_per"] = 119,
["hp_max_per"] = 120,
["dam"] = 121,
["res"] = 122,
["cure"] = 123,
["be_cure"] = 124,
["dam_p"] = 125,
["dam_s"] = 126,
["res_p"] = 127,
["res_s"] = 128,
["speed_per"] = 129,
["def_p_per"] = 130,
["def_s_per"] = 131,
["toughness"] = 132
}
Config.AttrData.data_key_to_id_fun = function(key)
local data=Config.AttrData.data_key_to_id[key]
if DATA_DEBUG and data == nil then
print('(Config.AttrData.data_key_to_id['..key..'])not found') return
end
return data
end
-- -------------------key_to_id_end---------------------
-- -------------------id_to_name_start-------------------
Config.AttrData.data_id_to_name_length = 29
Config.AttrData.data_id_to_name = {
[101] = "ATK",
[102] = "Physical DEF",
[103] = "Energy DEF",
[104] = "HP",
[105] = "HP",
[106] = "Speed",
[107] = "DEF",
[111] = "Hit",
[112] = "Dodge",
[113] = "Crit Rate",
[114] = "Crit DMG",
[115] = "Control",
[116] = "Control Resist",
[117] = "Crit Resist",
[118] = "ATK",
[119] = "DEF",
[120] = "HP",
[121] = "Damage Bonus",
[122] = "DMG Reduce",
[123] = "Healing",
[124] = "Healing Received",
[125] = "Physical DMG",
[126] = "Energy DMG",
[127] = "Physical Reduce",
[128] = "Energy Reduce",
[129] = "Speed",
[130] = "Physical DEF",
[131] = "Energy DEF",
[132] = "Tenacity"
}
Config.AttrData.data_id_to_name_fun = function(key)
local data=Config.AttrData.data_id_to_name[key]
if DATA_DEBUG and data == nil then
print('(Config.AttrData.data_id_to_name['..key..'])not found') return
end
return data
end
-- -------------------id_to_name_end---------------------
-- -------------------key_to_name_start-------------------
Config.AttrData.data_key_to_name_length = 29
Config.AttrData.data_key_to_name = {
["atk"] = "ATK",
["def_p"] = "Physical DEF",
["def_s"] = "Energy DEF",
["hp_max"] = "HP",
["hp"] = "HP",
["speed"] = "Speed",
["def"] = "DEF",
["hit_rate"] = "Hit",
["dodge_rate"] = "Dodge",
["crit_rate"] = "Crit Rate",
["crit_ratio"] = "Crit DMG",
["hit_magic"] = "Control",
["dodge_magic"] = "Control Resist",
["tenacity"] = "Crit Resist",
["atk_per"] = "ATK",
["def_per"] = "DEF",
["hp_max_per"] = "HP",
["dam"] = "Damage Bonus",
["res"] = "DMG Reduce",
["cure"] = "Healing",
["be_cure"] = "Healing Received",
["dam_p"] = "Physical DMG",
["dam_s"] = "Energy DMG",
["res_p"] = "Physical Reduce",
["res_s"] = "Energy Reduce",
["speed_per"] = "Speed",
["def_p_per"] = "Physical DEF",
["def_s_per"] = "Energy DEF",
["toughness"] = "Tenacity"
}
Config.AttrData.data_key_to_name_fun = function(key)
local data=Config.AttrData.data_key_to_name[key]
if DATA_DEBUG and data == nil then
print('(Config.AttrData.data_key_to_name['..key..'])not found') return
end
return data
end
-- -------------------key_to_name_end---------------------
-- -------------------power_start-------------------
Config.AttrData.data_power_length = 29
Config.AttrData.data_power = {
["atk"] = {power=2000, not_to_power=0},
["def_p"] = {power=0, not_to_power=0},
["def_s"] = {power=0, not_to_power=0},
["hp_max"] = {power=400, not_to_power=0},
["hp"] = {power=0, not_to_power=0},
["speed"] = {power=6400, not_to_power=0},
["def"] = {power=2658, not_to_power=0},
["hit_rate"] = {power=0, not_to_power=0},
["dodge_rate"] = {power=0, not_to_power=0},
["crit_rate"] = {power=14000, not_to_power=0},
["crit_ratio"] = {power=20000, not_to_power=1500},
["hit_magic"] = {power=8000, not_to_power=0},
["dodge_magic"] = {power=8000, not_to_power=0},
["tenacity"] = {power=14000, not_to_power=0},
["atk_per"] = {power=0, not_to_power=0},
["def_per"] = {power=0, not_to_power=0},
["hp_max_per"] = {power=0, not_to_power=0},
["dam"] = {power=18000, not_to_power=0},
["res"] = {power=18000, not_to_power=0},
["cure"] = {power=0, not_to_power=0},
["be_cure"] = {power=0, not_to_power=0},
["dam_p"] = {power=0, not_to_power=0},
["dam_s"] = {power=0, not_to_power=0},
["res_p"] = {power=18000, not_to_power=0},
["res_s"] = {power=18000, not_to_power=0},
["speed_per"] = {power=0, not_to_power=0},
["def_p_per"] = {power=0, not_to_power=0},
["def_s_per"] = {power=0, not_to_power=0},
["toughness"] = {power=0, not_to_power=0}
}
Config.AttrData.data_power_fun = function(key)
local data=Config.AttrData.data_power[key]
if DATA_DEBUG and data == nil then
print('(Config.AttrData.data_power['..key..'])not found') return
end
return data
end
-- -------------------power_end---------------------
-- -------------------type_start-------------------
Config.AttrData.data_type_length = 29
Config.AttrData.data_type = {
["atk"] = 1,
["def_p"] = 1,
["def_s"] = 1,
["hp_max"] = 1,
["hp"] = 1,
["speed"] = 1,
["def"] = 1,
["hit_rate"] = 2,
["dodge_rate"] = 2,
["crit_rate"] = 2,
["crit_ratio"] = 2,
["hit_magic"] = 2,
["dodge_magic"] = 2,
["tenacity"] = 2,
["atk_per"] = 2,
["def_per"] = 2,
["hp_max_per"] = 2,
["dam"] = 2,
["res"] = 2,
["cure"] = 2,
["be_cure"] = 2,
["dam_p"] = 2,
["dam_s"] = 2,
["res_p"] = 2,
["res_s"] = 2,
["speed_per"] = 2,
["def_p_per"] = 2,
["def_s_per"] = 2,
["toughness"] = 2
}
Config.AttrData.data_type_fun = function(key)
local data=Config.AttrData.data_type[key]
if DATA_DEBUG and data == nil then
print('(Config.AttrData.data_type['..key..'])not found') return
end
return data
end
-- -------------------type_end---------------------
-- -------------------partner_power_start-------------------
Config.AttrData.data_partner_power_length = 29
Config.AttrData.data_partner_power = {
["atk"] = 2000,
["def_p"] = 0,
["def_s"] = 0,
["hp_max"] = 400,
["hp"] = 0,
["speed"] = 6400,
["def"] = 2658,
["hit_rate"] = 0,
["dodge_rate"] = 0,
["crit_rate"] = 14000,
["crit_ratio"] = 20000,
["hit_magic"] = 8000,
["dodge_magic"] = 8000,
["tenacity"] = 14000,
["atk_per"] = 0,
["def_per"] = 0,
["hp_max_per"] = 0,
["dam"] = 18000,
["res"] = 18000,
["cure"] = 0,
["be_cure"] = 0,
["dam_p"] = 0,
["dam_s"] = 0,
["res_p"] = 18000,
["res_s"] = 18000,
["speed_per"] = 0,
["def_p_per"] = 0,
["def_s_per"] = 0,
["toughness"] = 0
}
Config.AttrData.data_partner_power_fun = function(key)
local data=Config.AttrData.data_partner_power[key]
if DATA_DEBUG and data == nil then
print('(Config.AttrData.data_partner_power['..key..'])not found') return
end
return data
end
-- -------------------partner_power_end---------------------
-- -------------------is_show_start-------------------
Config.AttrData.data_is_show_length = 14
Config.AttrData.data_is_show = {
["atk"] = 1,
["def_p"] = 1,
["def_s"] = 1,
["hp_max"] = 1,
["speed"] = 1,
["def"] = 1,
["crit_rate"] = 1,
["crit_ratio"] = 1,
["hit_magic"] = 1,
["dodge_magic"] = 1,
["tenacity"] = 1,
["atk_per"] = 1,
["def_per"] = 1,
["hp_max_per"] = 1
}
Config.AttrData.data_is_show_fun = function(key)
local data=Config.AttrData.data_is_show[key]
if DATA_DEBUG and data == nil then
print('(Config.AttrData.data_is_show['..key..'])not found') return
end
return data
end
-- -------------------is_show_end---------------------