feat(config): 新增回血和闪避属性及药水配置

- 在 AttrSet 配置中为每个阶级添加 HP_REGEN 属性项
- 新增闪避药水 (3009, 3010) 和回血药水 (3011, 3012)
- 更新 CanSelectAttrs 和 CanSelectPotions 以包含新配置项
This commit is contained in:
panw
2026-02-04 15:11:30 +08:00
parent 740f0af1e4
commit 0e63060957

View File

@@ -24,6 +24,7 @@ import { Attrs } from "./HeroAttrs";
2011:{uuid:2011, icon:"1020", attr: Attrs.BACK_CHANCE, value: 2, desc: "击退概率 +2%", isSpecial: true, note: "上限50%" },
2012:{uuid:2012, icon:"1020", attr: Attrs.SLOW_CHANCE, value: 2, desc: "减速概率 +2%", isSpecial: true, note: "上限50%" },
2013:{uuid:2013, icon:"1020", attr: Attrs.DODGE, value: 2, desc: "闪避率 +2%", isSpecial: true, note: "上限60%" },
2014:{uuid:2014, icon:"1020", attr: Attrs.HP_REGEN, value: 10, desc: "每秒回血 +10", isSpecial: true, note: "上限200" },
//*二阶 */
2101:{uuid:2101, icon:"1020", attr: Attrs.AP, value: 3, desc: "攻击力 +3%", isSpecial: false, note: "常规强化" },
2102:{uuid:2102, icon:"1020", attr: Attrs.HP_MAX, value: 3, desc: "生命上限 +3%", isSpecial: false, note: "常规强化" },
@@ -38,6 +39,7 @@ import { Attrs } from "./HeroAttrs";
2111:{uuid:2111, icon:"1020", attr: Attrs.BACK_CHANCE, value: 2.5, desc: "击退概率 +2.5%", isSpecial: true, note: "上限50%" },
2112:{uuid:2112, icon:"1020", attr: Attrs.SLOW_CHANCE, value: 2.5, desc: "减速概率 +2.5%", isSpecial: true, note: "上限50%" },
2113:{uuid:2113, icon:"1020", attr: Attrs.DODGE, value: 2.5, desc: "闪避率 +2.5%", isSpecial: true, note: "上限60%" },
2114:{uuid:2114, icon:"1020", attr: Attrs.HP_REGEN, value: 15, desc: "每秒回血 +15", isSpecial: true, note: "上限200" },
//*三阶 */
2201:{uuid:2201, icon:"1020", attr: Attrs.AP, value: 4, desc: "攻击力 +4%", isSpecial: false, note: "常规强化" },
@@ -53,6 +55,7 @@ import { Attrs } from "./HeroAttrs";
2211:{uuid:2211, icon:"1020", attr: Attrs.BACK_CHANCE, value: 3, desc: "击退概率 +3%", isSpecial: true, note: "上限50%" },
2212:{uuid:2212, icon:"1020", attr: Attrs.SLOW_CHANCE, value: 3, desc: "减速概率 +3%", isSpecial: true, note: "上限50%" },
2213:{uuid:2213, icon:"1020", attr: Attrs.DODGE, value: 3, desc: "闪避率 +3%", isSpecial: true, note: "上限60%" },
2214:{uuid:2214, icon:"1020", attr: Attrs.HP_REGEN, value: 20, desc: "每秒回血 +20", isSpecial: true, note: "上限200" },
//*四阶 */
2301:{uuid:2301, icon:"1020", attr: Attrs.AP, value: 5, desc: "攻击力 +5%", isSpecial: false, note: "常规强化" },
@@ -68,6 +71,7 @@ import { Attrs } from "./HeroAttrs";
2311:{uuid:2311, icon:"1020", attr: Attrs.BACK_CHANCE, value: 5, desc: "击退概率 +5%", isSpecial: true, note: "上限50%" },
2312:{uuid:2312, icon:"1020", attr: Attrs.SLOW_CHANCE, value: 5, desc: "减速概率 +5%", isSpecial: true, note: "上限50%" },
2313:{uuid:2313, icon:"1020", attr: Attrs.DODGE, value: 5, desc: "闪避率 +5%", isSpecial: true, note: "上限60%" },
2314:{uuid:2314, icon:"1020", attr: Attrs.HP_REGEN, value: 30, desc: "每秒回血 +30", isSpecial: true, note: "上限200" },
}
export interface PotionInfo extends AttrInfo {
@@ -86,6 +90,13 @@ export const PotionCards: Record<number, PotionInfo> = {
3006: { uuid: 3006, icon: "1020", attr: Attrs.AS, value: 20, desc: "60秒内攻速 +20%", isSpecial: false, note: "敏捷药剂", duration: 60 },
3007: { uuid: 3007, icon: "1020", attr: Attrs.DEF, value: 20, desc: "60秒内防御 +20%", isSpecial: false, note: "护甲药剂", duration: 60 },
3008: { uuid: 3008, icon: "1020", attr: Attrs.SPEED, value: 20, desc: "60秒内移速 +20%", isSpecial: false, note: "轻灵药剂", duration: 60 },
// 闪避药水
3009: { uuid: 3009, icon: "1020", attr: Attrs.DODGE, value: 50, desc: "20秒内闪避率 +50%", isSpecial: false, note: "残影药水", duration: 20 },
3010: { uuid: 3010, icon: "1020", attr: Attrs.DODGE, value: 20, desc: "60秒内闪避率 +20%", isSpecial: false, note: "闪避药剂", duration: 60 },
// 回血药水
3011: { uuid: 3011, icon: "1020", attr: Attrs.HP_REGEN, value: 50, desc: "20秒内回血 +50/s", isSpecial: false, note: "生命药水", duration: 20 },
3012: { uuid: 3012, icon: "1020", attr: Attrs.HP_REGEN, value: 20, desc: "60秒内回血 +20/s", isSpecial: false, note: "回春药剂", duration: 60 },
};
export const CanSelectAttrs: Record<number, number[]> = {
@@ -94,16 +105,16 @@ export const CanSelectAttrs: Record<number, number[]> = {
// 混合
4: [2001, 2002, 2003, 2004],
// 进阶属性
7: [2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2013],
7: [2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2013, 2014],
// 默认全开
99: [2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014]
};
export const CanSelectPotions: Record<number, number[]> = {
// 普通药水
1: [3005, 3006, 3007, 3008],
1: [3005, 3006, 3007, 3008, 3010, 3012],
// 强力药水
10: [3001, 3002, 3003, 3004],
10: [3001, 3002, 3003, 3004, 3009, 3011],
// 默认全开
99: [3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008]
99: [3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012]
};