refactor(config): 压缩天赋配置数组格式以提高可读性

This commit is contained in:
panw
2026-04-28 14:45:49 +08:00
parent fb3b9054dd
commit 4a7d74f011

View File

@@ -30,75 +30,25 @@ export const TalentConfig = {
// 天赋列表
talents: [
{
id: 1, name: "攻击强化", icon: "⚔️",
desc: "所有英雄 ATK +{value}%",
maxLevel: 5,
values: [3, 6, 9, 12, 15],
costs: [1, 1, 2, 2, 3]
},
{
id: 2, name: "生命强化", icon: "",
desc: "所有英雄 HP +{value}%",
maxLevel: 5,
values: [5, 10, 15, 20, 25],
costs: [1, 1, 2, 2, 3]
},
{
id: 3, name: "暴击强化", icon: "🔥",
desc: "所有英雄暴击率 +{value}%",
maxLevel: 5,
values: [2, 4, 6, 8, 10],
costs: [1, 1, 2, 2, 3]
},
{
id: 4, name: "风怒强化", icon: "⚡",
desc: "所有英雄风怒率 +{value}%",
maxLevel: 5,
values: [2, 4, 6, 8, 10],
costs: [1, 1, 2, 2, 3]
},
{
id: 5, name: "冰冻强化", icon: "❄️",
desc: "所有英雄冰冻率 +{value}%",
maxLevel: 5,
values: [2, 4, 6, 8, 10],
costs: [1, 1, 2, 2, 3]
},
{
id: 6, name: "穿刺强化", icon: "🗡️",
desc: "所有英雄穿刺 +{value}",
maxLevel: 5,
values: [0.2, 0.4, 0.6, 0.8, 1.0],
costs: [1, 1, 2, 2, 3]
},
{
id: 7, name: "护盾强化", icon: "🛡️",
desc: "所有护盾效果 +{value}%",
maxLevel: 5,
values: [5, 10, 15, 20, 25],
costs: [1, 1, 2, 2, 3]
},
{
id: 8, name: "采购优惠", icon: "🛒",
desc: "购买英雄 -{value}金",
maxLevel: 5,
values: [1, 2, 3, 4, 5],
costs: [1, 1, 2, 2, 3]
},
{
id: 9, name: "刷新优惠", icon: "🔄",
desc: "刷新重抽 -{value}金",
maxLevel: 5,
values: [0.5, 1.0, 1.5, 2.0, 2.5],
costs: [1, 1, 2, 2, 3]
},
{
id: 10, name: "出售补贴", icon: "💰",
desc: "出售英雄返还 +{value}%金币",
maxLevel: 5,
values: [10, 20, 30, 40, 50],
costs: [1, 1, 2, 2, 3]
}
{ id: 1, name: "攻击强化", icon: "⚔️", desc: "所有英雄 ATK +{value}%",
maxLevel: 5, values: [3, 6, 9, 12, 15], costs: [1, 1, 2, 2, 3] },
{ id: 2, name: "生命强化", icon: "❤️", desc: "所有英雄 HP +{value}%",
maxLevel: 5, values: [5, 10, 15, 20, 25], costs: [1, 1, 2, 2, 3] },
{ id: 3, name: "暴击强化", icon: "🔥", desc: "所有英雄暴击率 +{value}%",
maxLevel: 5, values: [2, 4, 6, 8, 10], costs: [1, 1, 2, 2, 3] },
{ id: 4, name: "风怒强化", icon: "⚡", desc: "所有英雄风怒率 +{value}%",
maxLevel: 5, values: [2, 4, 6, 8, 10], costs: [1, 1, 2, 2, 3] },
{ id: 5, name: "冰冻强化", icon: "", desc: "所有英雄冰冻率 +{value}%",
maxLevel: 5, values: [2, 4, 6, 8, 10], costs: [1, 1, 2, 2, 3] },
{ id: 6, name: "穿刺强化", icon: "🗡️", desc: "所有英雄穿刺 +{value}",
maxLevel: 5, values: [0.2, 0.4, 0.6, 0.8, 1.0], costs: [1, 1, 2, 2, 3] },
{ id: 7, name: "护盾强化", icon: "🛡️", desc: "所有护盾效果 +{value}%",
maxLevel: 5, values: [5, 10, 15, 20, 25], costs: [1, 1, 2, 2, 3] },
{ id: 8, name: "采购优惠", icon: "🛒", desc: "购买英雄 -{value}金",
maxLevel: 5, values: [1, 2, 3, 4, 5], costs: [1, 1, 2, 2, 3] },
{ id: 9, name: "刷新优惠", icon: "🔄", desc: "刷新重抽 -{value}",
maxLevel: 5, values: [0.5, 1.0, 1.5, 2.0, 2.5], costs: [1, 1, 2, 2, 3] },
{ id: 10, name: "出售补贴", icon: "💰", desc: "出售英雄返还 +{value}%金币",
maxLevel: 5, values: [10, 20, 30, 40, 50], costs: [1, 1, 2, 2, 3] }
] as TalentInfo[]
};