feat(config): 重构属性卡配置,移除showValue并新增多阶属性

- 移除 AttrInfo 接口中的 showValue 字段,简化数据结构
- 将原有的单层属性卡扩展为一阶至四阶,每阶包含12种属性
- 调整基础属性(攻击、生命、防御、攻速)和特殊属性(吸血、暴击等)的数值
- 更新药水卡配置,同步移除 showValue 字段
This commit is contained in:
panw
2026-01-30 10:43:26 +08:00
parent 4e28ea6859
commit 42fc5e267a

View File

@@ -5,26 +5,65 @@ import { Attrs } from "./HeroAttrs";
icon:string; // 属性图标
attr: Attrs; // 属性类型
value: number;// 属性值
showValue: number;// 显示值
desc: string;// 属性描述
isSpecial: boolean;// 是否为特殊属性
note?: string;// 属性备注
}
export const AttrCards: Record<number, AttrInfo> = {
2001:{uuid:2001, icon:"1020", attr: Attrs.AP, value: 16.5, showValue: 16.5, desc: "攻击力 +16.5", isSpecial: false, note: "常规强化" },
2002:{uuid:2002, icon:"1020", attr: Attrs.HP_MAX, value: 110, showValue: 110, desc: "生命上限 +110", isSpecial: false, note: "常规强化" },
2003:{uuid:2003, icon:"1020", attr: Attrs.DEF, value: 5.5, showValue: 5.5, desc: "防御力 +5.5", isSpecial: false, note: "常规强化" },
2004:{uuid:2004, icon:"1020", attr: Attrs.AS, value: 5.25, showValue: 5.25, desc: "攻击速度 +5.25%", isSpecial: false, note: "常规强化" },
2005:{uuid:2005, icon:"1020", attr: Attrs.PUNCTURE, value: 1, showValue: 1, desc: "穿透数量 +1", isSpecial: true, note: "上限5层" },
2006:{uuid:2006, icon:"1020", attr: Attrs.CRITICAL, value: 14, showValue: 14, desc: "暴击率 +14%", isSpecial: true, note: "上限70%" },
2007:{uuid:2007, icon:"1020", attr: Attrs.CRITICAL_DMG, value: 40, showValue: 40, desc: "暴击伤害 +40%", isSpecial: true, note: "上限200%" },
2008:{uuid:2008, icon:"1020", attr: Attrs.STUN_CHANCE, value: 10, showValue: 10, desc: "眩晕概率 +10%", isSpecial: true, note: "上限50%" },
2009:{uuid:2009, icon:"1020", attr: Attrs.FREEZE_CHANCE, value: 10, showValue: 10, desc: "冰冻概率 +10%", isSpecial: true, note: "上限50%" },
2010:{uuid:2010, icon:"1020", attr: Attrs.BURN_CHANCE, value: 10, showValue: 10, desc: "燃烧概率 +10%", isSpecial: true, note: "上限50%" },
2011:{uuid:2011, icon:"1020", attr: Attrs.BACK_CHANCE, value: 10, showValue: 10, desc: "击退概率 +10%", isSpecial: true, note: "上限50%" },
2012:{uuid:2012, icon:"1020", attr: Attrs.SLOW_CHANCE, value: 10, showValue: 10, desc: "减速概率 +10%", isSpecial: true, note: "上限50%" },
2013:{uuid:2013, icon:"1020", attr: Attrs.LIFESTEAL, value: 10, showValue: 10, desc: "吸血比例 +10%", isSpecial: true, note: "上限50%" },
2014:{uuid:2014, icon:"1020", attr: Attrs.MANASTEAL, value: 10, showValue: 10, desc: "吸蓝比例 +10%", isSpecial: true, note: "上限50%" },
//*一阶 */
2001:{uuid:2001, icon:"1020", attr: Attrs.AP, value: 10, desc: "攻击力 +10", isSpecial: false, note: "常规强化" },
2002:{uuid:2002, icon:"1020", attr: Attrs.HP_MAX, value: 50, desc: "生命上限 +50", isSpecial: false, note: "常规强化" },
2003:{uuid:2003, icon:"1020", attr: Attrs.DEF, value: 2, desc: "防御力 +2%", isSpecial: false, note: "常规强化" },
2004:{uuid:2004, icon:"1020", attr: Attrs.AS, value: 1, desc: "攻击速度 +1%", isSpecial: false, note: "常规强化" },
2005:{uuid:2005, icon:"1020", attr: Attrs.LIFESTEAL, value: 2, desc: "吸血比例 +2%", isSpecial: true, note: "上限50%" },
2006:{uuid:2006, icon:"1020", attr: Attrs.CRITICAL, value: 2, desc: "暴击率 +2%", isSpecial: true, note: "上限70%" },
2007:{uuid:2007, icon:"1020", attr: Attrs.CRITICAL_DMG, value: 10, desc: "暴击伤害 +10%", isSpecial: true, note: "上限200%" },
2008:{uuid:2008, icon:"1020", attr: Attrs.STUN_CHANCE, value: 2, desc: "眩晕概率 +2%", isSpecial: true, note: "上限50%" },
2009:{uuid:2009, icon:"1020", attr: Attrs.FREEZE_CHANCE, value: 2, desc: "冰冻概率 +2%", isSpecial: true, note: "上限50%" },
2010:{uuid:2010, icon:"1020", attr: Attrs.BURN_CHANCE, value: 2, desc: "燃烧概率 +2%", isSpecial: true, note: "上限50%" },
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%" },
//*二阶 */
2101:{uuid:2101, icon:"1020", attr: Attrs.AP, value: 15, desc: "攻击力 +15", isSpecial: false, note: "常规强化" },
2102:{uuid:2102, icon:"1020", attr: Attrs.HP_MAX, value: 70, desc: "生命上限 +70", isSpecial: false, note: "常规强化" },
2103:{uuid:2103, icon:"1020", attr: Attrs.DEF, value: 2.5, desc: "防御力 +2.5%", isSpecial: false, note: "常规强化" },
2104:{uuid:2104, icon:"1020", attr: Attrs.AS, value: 1.5, desc: "攻击速度 +1.5%", isSpecial: false, note: "常规强化" },
2105:{uuid:2105, icon:"1020", attr: Attrs.LIFESTEAL, value: 2.5, desc: "吸血比例 +2.5%", isSpecial: true, note: "上限50%" },
2106:{uuid:2106, icon:"1020", attr: Attrs.CRITICAL, value: 2.5, desc: "暴击率 +2.5%", isSpecial: true, note: "上限70%" },
2107:{uuid:2107, icon:"1020", attr: Attrs.CRITICAL_DMG, value: 12, desc: "暴击伤害 +12%", isSpecial: true, note: "上限200%" },
2108:{uuid:2108, icon:"1020", attr: Attrs.STUN_CHANCE, value: 2.5, desc: "眩晕概率 +2.5%", isSpecial: true, note: "上限50%" },
2109:{uuid:2109, icon:"1020", attr: Attrs.FREEZE_CHANCE, value: 2.5, desc: "冰冻概率 +2.5%", isSpecial: true, note: "上限50%" },
2110:{uuid:2110, icon:"1020", attr: Attrs.BURN_CHANCE, value: 2.5, desc: "燃烧概率 +2.5%", isSpecial: true, note: "上限50%" },
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%" },
//*三阶 */
2201:{uuid:2201, icon:"1020", attr: Attrs.AP, value: 20, desc: "攻击力 +20", isSpecial: false, note: "常规强化" },
2202:{uuid:2202, icon:"1020", attr: Attrs.HP_MAX, value: 100, desc: "生命上限 +100", isSpecial: false, note: "常规强化" },
2203:{uuid:2203, icon:"1020", attr: Attrs.DEF, value: 3, desc: "防御力 +3%", isSpecial: false, note: "常规强化" },
2204:{uuid:2204, icon:"1020", attr: Attrs.AS, value: 2, desc: "攻击速度 +2%", isSpecial: false, note: "常规强化" },
2205:{uuid:2205, icon:"1020", attr: Attrs.LIFESTEAL, value: 3, desc: "吸血比例 +3%", isSpecial: true, note: "上限50%" },
2206:{uuid:2206, icon:"1020", attr: Attrs.CRITICAL, value: 3, desc: "暴击率 +3%", isSpecial: true, note: "上限70%" },
2207:{uuid:2207, icon:"1020", attr: Attrs.CRITICAL_DMG, value: 15, desc: "暴击伤害 +15%", isSpecial: true, note: "上限200%" },
2208:{uuid:2208, icon:"1020", attr: Attrs.STUN_CHANCE, value: 3, desc: "眩晕概率 +3%", isSpecial: true, note: "上限50%" },
2209:{uuid:2209, icon:"1020", attr: Attrs.FREEZE_CHANCE, value: 3, desc: "冰冻概率 +3%", isSpecial: true, note: "上限50%" },
2210:{uuid:2210, icon:"1020", attr: Attrs.BURN_CHANCE, value: 3, desc: "燃烧概率 +3%", isSpecial: true, note: "上限50%" },
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%" },
//*四阶 */
2301:{uuid:2301, icon:"1020", attr: Attrs.AP, value: 30, desc: "攻击力 +30", isSpecial: false, note: "常规强化" },
2302:{uuid:2302, icon:"1020", attr: Attrs.HP_MAX, value: 200, desc: "生命上限 +200", isSpecial: false, note: "常规强化" },
2303:{uuid:2303, icon:"1020", attr: Attrs.DEF, value: 5, desc: "防御力 +5%", isSpecial: false, note: "常规强化" },
2304:{uuid:2304, icon:"1020", attr: Attrs.AS, value: 5, desc: "攻击速度 +5%", isSpecial: false, note: "常规强化" },
2305:{uuid:2305, icon:"1020", attr: Attrs.LIFESTEAL, value: 5, desc: "吸血比例 +5%", isSpecial: true, note: "上限50%" },
2306:{uuid:2306, icon:"1020", attr: Attrs.CRITICAL, value: 5, desc: "暴击率 +5%", isSpecial: true, note: "上限70%" },
2307:{uuid:2307, icon:"1020", attr: Attrs.CRITICAL_DMG, value: 30, desc: "暴击伤害 +30%", isSpecial: true, note: "上限200%" },
2308:{uuid:2308, icon:"1020", attr: Attrs.STUN_CHANCE, value: 5, desc: "眩晕概率 +5%", isSpecial: true, note: "上限50%" },
2309:{uuid:2309, icon:"1020", attr: Attrs.FREEZE_CHANCE, value: 5, desc: "冰冻概率 +5%", isSpecial: true, note: "上限50%" },
2310:{uuid:2310, icon:"1020", attr: Attrs.BURN_CHANCE, value: 5, desc: "燃烧概率 +5%", isSpecial: true, note: "上限50%" },
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%" },
}
export interface PotionInfo extends AttrInfo {
@@ -33,16 +72,16 @@ import { Attrs } from "./HeroAttrs";
export const PotionCards: Record<number, PotionInfo> = {
// 持续时间20秒的强力药水
3001: { uuid: 3001, icon: "1020", attr: Attrs.AP, value: 50, showValue: 50, desc: "20秒内攻击力 +50%", isSpecial: false, note: "狂暴药水", duration: 20 },
3002: { uuid: 3002, icon: "1020", attr: Attrs.AS, value: 50, showValue: 50, desc: "20秒内攻速 +50%", isSpecial: false, note: "急速药水", duration: 20 },
3003: { uuid: 3003, icon: "1020", attr: Attrs.DEF, value: 50, showValue: 50, desc: "20秒内防御 +50%", isSpecial: false, note: "金钟罩", duration: 20 },
3004: { uuid: 3004, icon: "1020", attr: Attrs.SPEED, value: 50, showValue: 50, desc: "20秒内移速 +50%", isSpecial: false, note: "神行药水", duration: 20 },
3001: { uuid: 3001, icon: "1020", attr: Attrs.AP, value: 50, desc: "20秒内攻击力 +50%", isSpecial: false, note: "狂暴药水", duration: 20 },
3002: { uuid: 3002, icon: "1020", attr: Attrs.AS, value: 50, desc: "20秒内攻速 +50%", isSpecial: false, note: "急速药水", duration: 20 },
3003: { uuid: 3003, icon: "1020", attr: Attrs.DEF, value: 50, desc: "20秒内防御 +50%", isSpecial: false, note: "金钟罩", duration: 20 },
3004: { uuid: 3004, icon: "1020", attr: Attrs.SPEED, value: 50, desc: "20秒内移速 +50%", isSpecial: false, note: "神行药水", duration: 20 },
// 持续时间60秒的普通药水
3005: { uuid: 3005, icon: "1020", attr: Attrs.AP, value: 20, showValue: 20, desc: "60秒内攻击力 +20%", isSpecial: false, note: "力量药剂", duration: 60 },
3006: { uuid: 3006, icon: "1020", attr: Attrs.AS, value: 20, showValue: 20, desc: "60秒内攻速 +20%", isSpecial: false, note: "敏捷药剂", duration: 60 },
3007: { uuid: 3007, icon: "1020", attr: Attrs.DEF, value: 20, showValue: 20, desc: "60秒内防御 +20%", isSpecial: false, note: "护甲药剂", duration: 60 },
3008: { uuid: 3008, icon: "1020", attr: Attrs.SPEED, value: 20, showValue: 20, desc: "60秒内移速 +20%", isSpecial: false, note: "轻灵药剂", duration: 60 },
3005: { uuid: 3005, icon: "1020", attr: Attrs.AP, value: 20, desc: "60秒内攻击力 +20%", isSpecial: false, note: "力量药剂", duration: 60 },
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 },
};
export const CanSelectAttrs: Record<number, number[]> = {