Files
pixelheros/assets/script/game/common/config/AttrSet.ts
panw b85b9d8655 feat(skill): 新增死亡动画及预制体资源
添加 dead.prefab 预制体及其关联的 dead.anim 动画文件,用于角色死亡时的技能表现。
2026-02-05 16:16:05 +08:00

64 lines
4.7 KiB
TypeScript

import { Attrs } from "./HeroAttrs";
export interface AttrInfo {
uuid: number;
icon:string; // 属性图标
attr: Attrs; // 属性类型
value: number;// 属性值
desc: string;// 属性描述
isSpecial: boolean;// 是否为特殊属性
name?: string;// 属性备注
}
export const AttrCards: Record<number, AttrInfo> = {
//*一阶 */
2001:{uuid:2001, icon:"1020", attr: Attrs.AP, value: 20, desc: "攻击力 +20%", isSpecial: false,name: "强化攻击" },
2002:{uuid:2002, icon:"1020", attr: Attrs.HP_MAX, value: 20, desc: "生命上限 +20%", isSpecial: false,name: "强化生命" },
2003:{uuid:2003, icon:"1020", attr: Attrs.DEF, value: 20, desc: "防御力 +20%", isSpecial: false,name: "强化防御" },
2004:{uuid:2004, icon:"1020", attr: Attrs.AS, value: 5, desc: "攻击速度 +5%", isSpecial: false,name: "强化攻速" },
2005:{uuid:2005, icon:"1020", attr: Attrs.LIFESTEAL, value: 10, desc: "吸血比例 +2%", isSpecial: true,name: "强化吸血" },
2006:{uuid:2006, icon:"1020", attr: Attrs.CRITICAL, value: 5, desc: "暴击率 +2%", isSpecial: true,name: "强化暴击" },
2007:{uuid:2007, icon:"1020", attr: Attrs.CRITICAL_DMG, value: 10, desc: "暴击伤害 +10%", isSpecial: true,name: "强化爆伤" },
2008:{uuid:2008, icon:"1020", attr: Attrs.STUN_CHANCE, value: 5, desc: "眩晕概率 +2%", isSpecial: true,name: "强化眩晕" },
2009:{uuid:2009, icon:"1020", attr: Attrs.FREEZE_CHANCE, value: 5, desc: "冰冻概率 +2%", isSpecial: true,name: "强化冰冻" },
2010:{uuid:2010, icon:"1020", attr: Attrs.BURN_CHANCE, value: 5, desc: "燃烧概率 +2%", isSpecial: true,name: "强化燃烧" },
2011:{uuid:2011, icon:"1020", attr: Attrs.BACK_CHANCE, value: 5, desc: "击退概率 +2%", isSpecial: true,name: "强化击退" },
2012:{uuid:2012, icon:"1020", attr: Attrs.SLOW_CHANCE, value: 5, desc: "减速概率 +2%", isSpecial: true,name: "强化减速" },
2013:{uuid:2013, icon:"1020", attr: Attrs.DODGE, value: 5, desc: "闪避率 +5%", isSpecial: true,name: "强化闪避" },
2014:{uuid:2014, icon:"1020", attr: Attrs.HP_REGEN, value: 20, desc: "回血 +20%", isSpecial: true,name: "强化回血" },
}
export interface PotionInfo extends AttrInfo {
duration: number; // 持续时间
}
export const PotionCards: Record<number, PotionInfo> = {
// 持续时间20秒的强力药水
3001: { uuid: 3001, icon: "1020", attr: Attrs.AP, value: 100, desc: "15秒内攻击力 +100%", isSpecial: false,name: "狂暴药水", duration: 15 },
3002: { uuid: 3002, icon: "1020", attr: Attrs.AS, value: 100, desc: "15秒内攻速 +100%", isSpecial: false,name: "急速药水", duration: 15 },
3003: { uuid: 3003, icon: "1020", attr: Attrs.DEF, value: 100, desc: "15秒内防御 +100%", isSpecial: false,name: "防御药水", duration: 15 },
3004: { uuid: 3004, icon: "1020", attr: Attrs.SPEED, value: 100, desc: "15秒内移速 +100%", isSpecial: false,name: "神行药水", duration: 15 },
// 持续时间60秒的普通药水
3005: { uuid: 3005, icon: "1020", attr: Attrs.AP, value: 25, desc: "60秒内攻击力 +25%", isSpecial: false,name: "力量药剂", duration: 60 },
3006: { uuid: 3006, icon: "1020", attr: Attrs.AS, value: 25, desc: "60秒内攻速 +25%", isSpecial: false,name: "敏捷药剂", duration: 60 },
3007: { uuid: 3007, icon: "1020", attr: Attrs.DEF, value: 25, desc: "60秒内防御 +25%", isSpecial: false,name: "护甲药剂", duration: 60 },
3008: { uuid: 3008, icon: "1020", attr: Attrs.SPEED, value: 25, desc: "60秒内移速 +25%", isSpecial: false,name: "轻灵药剂", duration: 60 },
// 闪避药水
3009: { uuid: 3009, icon: "1020", attr: Attrs.DODGE, value: 100, desc: "20秒内闪避率 +100%", isSpecial: false,name: "残影药水", duration: 15 },
3010: { uuid: 3010, icon: "1020", attr: Attrs.DODGE, value: 25, desc: "60秒内闪避率 +25%", isSpecial: false,name: "闪避药剂", duration: 60 },
// 回血药水
3011: { uuid: 3011, icon: "1020", attr: Attrs.HP_REGEN, value: 30, desc: "每5秒回血生命最大值的30%", isSpecial: false,name: "生命药水", duration: 15 },
3012: { uuid: 3012, icon: "1020", attr: Attrs.HP_REGEN, value: 10, desc: "每5秒回血生命最大值的10%", isSpecial: false,name: "回春药剂", duration: 60 },
};
export const CanSelectAttrs: Record<number, number[]> = {
// 1阶属性
1: [2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014],
};
export const CanSelectPotions: Record<number, number[]> = {
// 全药水
1: [3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012]
};