feat(skill): 新增死亡动画及预制体资源

添加 dead.prefab 预制体及其关联的 dead.anim 动画文件,用于角色死亡时的技能表现。
This commit is contained in:
panw
2026-02-05 16:16:05 +08:00
parent 1ad7b70c45
commit b85b9d8655
10 changed files with 15684 additions and 3755 deletions

View File

@@ -0,0 +1,78 @@
[
{
"__type__": "cc.AnimationClip",
"_name": "dead",
"_objFlags": 0,
"__editorExtras__": {
"embeddedPlayerGroups": []
},
"_native": "",
"sample": 60,
"speed": 1,
"wrapMode": 1,
"enableTrsBlending": false,
"_duration": 0,
"_hash": 500763545,
"_tracks": [
{
"__id__": 1
}
],
"_exoticAnimation": null,
"_events": [],
"_embeddedPlayers": [],
"_additiveSettings": {
"__id__": 7
},
"_auxiliaryCurveEntries": []
},
{
"__type__": "cc.animation.ObjectTrack",
"_binding": {
"__type__": "cc.animation.TrackBinding",
"path": {
"__id__": 2
},
"proxy": null
},
"_channel": {
"__id__": 5
}
},
{
"__type__": "cc.animation.TrackPath",
"_paths": [
{
"__id__": 3
},
{
"__id__": 4
},
"spriteFrame"
]
},
{
"__type__": "cc.animation.HierarchyPath",
"path": "Node"
},
{
"__type__": "cc.animation.ComponentPath",
"component": "cc.Sprite"
},
{
"__type__": "cc.animation.Channel",
"_curve": {
"__id__": 6
}
},
{
"__type__": "cc.ObjectCurve",
"_times": [],
"_values": []
},
{
"__type__": "cc.AnimationClipAdditiveSettings",
"enabled": false,
"refClip": null
}
]

View File

@@ -0,0 +1,13 @@
{
"ver": "2.0.3",
"importer": "animation-clip",
"imported": true,
"uuid": "f6fa875d-2465-4e3b-8f4d-52d2ee43481d",
"files": [
".cconb"
],
"subMetas": {},
"userData": {
"name": "dead"
}
}

View File

@@ -102,8 +102,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.4,
"y": 0.4,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,

View File

@@ -0,0 +1,289 @@
[
{
"__type__": "cc.Prefab",
"_name": "dead",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "dead",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [
{
"__id__": 8
},
{
"__id__": 10
},
{
"__id__": 12
}
],
"_prefab": {
"__id__": 14
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 6.112,
"y": 45.573,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Node",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
}
],
"_prefab": {
"__id__": 7
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.4,
"y": 0.4,
"z": 1
},
"_mobility": 0,
"_layer": 1,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 127,
"height": 127
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ddhDbko4FLmKZGY46brX7z"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": null,
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c3vPZUzCRINL3sICnCZKIr"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "feOW1uSctLKYCw3esMiuox",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 9
},
"_contentSize": {
"__type__": "cc.Size",
"width": 104,
"height": 75
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a7pn5tzA1BSI1AfdpVsHh7"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 11
},
"playOnLoad": true,
"_clips": [
{
"__uuid__": "f6fa875d-2465-4e3b-8f4d-52d2ee43481d",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "f6fa875d-2465-4e3b-8f4d-52d2ee43481d",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "63z5ZyjTNKYbn+kEVB1s3W"
},
{
"__type__": "0f3c4JhFbFO2rEFqBJJ7hFv",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 13
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "32SLcINL1JHZ+vIyextzaC"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "cfqCWnxbFLNoQMedQXsav3",
"instance": null,
"targetOverrides": null
}
]

View File

@@ -0,0 +1,13 @@
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "97881732-3eb6-4ca6-b533-69b1df110ef3",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "dead"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -11,67 +11,21 @@ import { Attrs } from "./HeroAttrs";
}
export const AttrCards: Record<number, AttrInfo> = {
//*一阶 */
2001:{uuid:2001, icon:"1020", attr: Attrs.AP, value: 2, desc: "攻击力 +2%", isSpecial: false,name: "强化攻击" },
2002:{uuid:2002, icon:"1020", attr: Attrs.HP_MAX, value: 2, desc: "生命上限 +2%", isSpecial: false,name: "强化生命" },
2003:{uuid:2003, icon:"1020", attr: Attrs.DEF, value: 2, desc: "防御力 +2%", isSpecial: false,name: "强化防御" },
2004:{uuid:2004, icon:"1020", attr: Attrs.AS, value: 1, desc: "攻击速度 +1%", isSpecial: false,name: "强化攻速" },
2005:{uuid:2005, icon:"1020", attr: Attrs.LIFESTEAL, value: 2, desc: "吸血比例 +2%", isSpecial: true,name: "强化吸血" },
2006:{uuid:2006, icon:"1020", attr: Attrs.CRITICAL, value: 2, 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: 2, desc: "眩晕概率 +2%", isSpecial: true,name: "强化眩晕" },
2009:{uuid:2009, icon:"1020", attr: Attrs.FREEZE_CHANCE, value: 2, desc: "冰冻概率 +2%", isSpecial: true,name: "强化冰冻" },
2010:{uuid:2010, icon:"1020", attr: Attrs.BURN_CHANCE, value: 2, desc: "燃烧概率 +2%", isSpecial: true,name: "强化燃烧" },
2011:{uuid:2011, icon:"1020", attr: Attrs.BACK_CHANCE, value: 2, desc: "击退概率 +2%", isSpecial: true,name: "强化击退" },
2012:{uuid:2012, icon:"1020", attr: Attrs.SLOW_CHANCE, value: 2, desc: "减速概率 +2%", isSpecial: true,name: "强化减速" },
2013:{uuid:2013, icon:"1020", attr: Attrs.DODGE, value: 2, desc: "闪避率 +2%", isSpecial: true,name: "强化闪避" },
2014:{uuid:2014, icon:"1020", attr: Attrs.HP_REGEN, value: 10, desc: "每秒回血 +10", isSpecial: true,name: "强化回血" },
//*二阶 */
2101:{uuid:2101, icon:"1020", attr: Attrs.AP, value: 3, desc: "攻击力 +3%", isSpecial: false,name: "强化攻击Ⅱ" },
2102:{uuid:2102, icon:"1020", attr: Attrs.HP_MAX, value: 3, desc: "生命上限 +3%", isSpecial: false,name: "强化生命Ⅱ" },
2103:{uuid:2103, icon:"1020", attr: Attrs.DEF, value: 2.5, desc: "防御力 +2.5%", isSpecial: false,name: "强化防御Ⅱ" },
2104:{uuid:2104, icon:"1020", attr: Attrs.AS, value: 1.5, desc: "攻击速度 +1.5%", isSpecial: false,name: "强化攻速Ⅱ" },
2105:{uuid:2105, icon:"1020", attr: Attrs.LIFESTEAL, value: 2.5, desc: "吸血比例 +2.5%", isSpecial: true,name: "强化吸血Ⅱ" },
2106:{uuid:2106, icon:"1020", attr: Attrs.CRITICAL, value: 2.5, desc: "暴击率 +2.5%", isSpecial: true,name: "强化暴击Ⅱ" },
2107:{uuid:2107, icon:"1020", attr: Attrs.CRITICAL_DMG, value: 12, desc: "暴击伤害 +12%", isSpecial: true,name: "强化爆伤Ⅱ" },
2108:{uuid:2108, icon:"1020", attr: Attrs.STUN_CHANCE, value: 2.5, desc: "眩晕概率 +2.5%", isSpecial: true,name: "强化眩晕Ⅱ" },
2109:{uuid:2109, icon:"1020", attr: Attrs.FREEZE_CHANCE, value: 2.5, desc: "冰冻概率 +2.5%", isSpecial: true,name: "强化冰冻Ⅱ" },
2110:{uuid:2110, icon:"1020", attr: Attrs.BURN_CHANCE, value: 2.5, desc: "燃烧概率 +2.5%", isSpecial: true,name: "强化燃烧Ⅱ" },
2111:{uuid:2111, icon:"1020", attr: Attrs.BACK_CHANCE, value: 2.5, desc: "击退概率 +2.5%", isSpecial: true,name: "强化击退Ⅱ" },
2112:{uuid:2112, icon:"1020", attr: Attrs.SLOW_CHANCE, value: 2.5, desc: "减速概率 +2.5%", isSpecial: true,name: "强化减速Ⅱ" },
2113:{uuid:2113, icon:"1020", attr: Attrs.DODGE, value: 2.5, desc: "闪避率 +2.5%", isSpecial: true,name: "强化闪避Ⅱ" },
2114:{uuid:2114, icon:"1020", attr: Attrs.HP_REGEN, value: 15, desc: "每秒回血 +15", isSpecial: true,name: "强化回血Ⅱ" },
//*三阶 */
2201:{uuid:2201, icon:"1020", attr: Attrs.AP, value: 4, desc: "攻击力 +4%", isSpecial: false,name: "强化攻击Ⅲ" },
2202:{uuid:2202, icon:"1020", attr: Attrs.HP_MAX, value: 4, desc: "生命上限 +4%", isSpecial: false,name: "强化生命Ⅲ" },
2203:{uuid:2203, icon:"1020", attr: Attrs.DEF, value: 3, desc: "防御力 +3%", isSpecial: false,name: "强化防御Ⅲ" },
2204:{uuid:2204, icon:"1020", attr: Attrs.AS, value: 2, desc: "攻击速度 +2%", isSpecial: false,name: "强化攻速Ⅲ" },
2205:{uuid:2205, icon:"1020", attr: Attrs.LIFESTEAL, value: 3, desc: "吸血比例 +3%", isSpecial: true,name: "强化吸血Ⅲ" },
2206:{uuid:2206, icon:"1020", attr: Attrs.CRITICAL, value: 3, desc: "暴击率 +3%", isSpecial: true,name: "强化暴击Ⅲ" },
2207:{uuid:2207, icon:"1020", attr: Attrs.CRITICAL_DMG, value: 15, desc: "暴击伤害 +15%", isSpecial: true,name: "强化爆伤Ⅲ" },
2208:{uuid:2208, icon:"1020", attr: Attrs.STUN_CHANCE, value: 3, desc: "眩晕概率 +3%", isSpecial: true,name: "强化眩晕Ⅲ" },
2209:{uuid:2209, icon:"1020", attr: Attrs.FREEZE_CHANCE, value: 3, desc: "冰冻概率 +3%", isSpecial: true,name: "强化冰冻Ⅲ" },
2210:{uuid:2210, icon:"1020", attr: Attrs.BURN_CHANCE, value: 3, desc: "燃烧概率 +3%", isSpecial: true,name: "强化燃烧Ⅲ" },
2211:{uuid:2211, icon:"1020", attr: Attrs.BACK_CHANCE, value: 3, desc: "击退概率 +3%", isSpecial: true,name: "强化击退Ⅲ" },
2212:{uuid:2212, icon:"1020", attr: Attrs.SLOW_CHANCE, value: 3, desc: "减速概率 +3%", isSpecial: true,name: "强化减速Ⅲ" },
2213:{uuid:2213, icon:"1020", attr: Attrs.DODGE, value: 3, desc: "闪避率 +3%", isSpecial: true,name: "强化闪避Ⅲ" },
2214:{uuid:2214, icon:"1020", attr: Attrs.HP_REGEN, value: 20, desc: "每秒回血 +20", isSpecial: true,name: "强化回血Ⅲ" },
//*四阶 */
2301:{uuid:2301, icon:"1020", attr: Attrs.AP, value: 5, desc: "攻击力 +5%", isSpecial: false,name: "强化攻击Ⅳ" },
2302:{uuid:2302, icon:"1020", attr: Attrs.HP_MAX, value: 5, desc: "生命上限 +5%", isSpecial: false,name: "强化生命Ⅳ" },
2303:{uuid:2303, icon:"1020", attr: Attrs.DEF, value: 5, desc: "防御力 +5%", isSpecial: false,name: "强化防御Ⅳ" },
2304:{uuid:2304, icon:"1020", attr: Attrs.AS, value: 5, desc: "攻击速度 +5%", isSpecial: false,name: "强化攻速Ⅳ" },
2305:{uuid:2305, icon:"1020", attr: Attrs.LIFESTEAL, value: 5, desc: "吸血比例 +5%", isSpecial: true,name: "强化吸血Ⅳ" },
2306:{uuid:2306, icon:"1020", attr: Attrs.CRITICAL, value: 5, desc: "暴击率 +5%", isSpecial: true,name: "强化暴击Ⅳ" },
2307:{uuid:2307, icon:"1020", attr: Attrs.CRITICAL_DMG, value: 30, desc: "暴击伤害 +30%", isSpecial: true,name: "强化爆伤Ⅳ" },
2308:{uuid:2308, icon:"1020", attr: Attrs.STUN_CHANCE, value: 5, desc: "眩晕概率 +5%", isSpecial: true,name: "强化眩晕Ⅳ" },
2309:{uuid:2309, icon:"1020", attr: Attrs.FREEZE_CHANCE, value: 5, desc: "冰冻概率 +5%", isSpecial: true,name: "强化冰冻Ⅳ" },
2310:{uuid:2310, icon:"1020", attr: Attrs.BURN_CHANCE, value: 5, desc: "燃烧概率 +5%", isSpecial: true,name: "强化燃烧Ⅳ" },
2311:{uuid:2311, icon:"1020", attr: Attrs.BACK_CHANCE, value: 5, desc: "击退概率 +5%", isSpecial: true,name: "强化击退Ⅳ" },
2312:{uuid:2312, icon:"1020", attr: Attrs.SLOW_CHANCE, value: 5, desc: "减速概率 +5%", isSpecial: true,name: "强化减速Ⅳ" },
2313:{uuid:2313, icon:"1020", attr: Attrs.DODGE, value: 5, desc: "闪避率 +5%", isSpecial: true,name: "强化闪避Ⅳ" },
2314:{uuid:2314, icon:"1020", attr: Attrs.HP_REGEN, value: 30, desc: "每秒回血 +30", isSpecial: true,name: "强化回血Ⅳ" },
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 {
@@ -80,34 +34,28 @@ import { Attrs } from "./HeroAttrs";
export const PotionCards: Record<number, PotionInfo> = {
// 持续时间20秒的强力药水
3001: { uuid: 3001, icon: "1020", attr: Attrs.AP, value: 50, desc: "20秒内攻击力 +50%", isSpecial: false,name: "狂暴药水", duration: 20 },
3002: { uuid: 3002, icon: "1020", attr: Attrs.AS, value: 50, desc: "20秒内攻速 +50%", isSpecial: false,name: "急速药水", duration: 20 },
3003: { uuid: 3003, icon: "1020", attr: Attrs.DEF, value: 50, desc: "20秒内防御 +50%", isSpecial: false,name: "防御药水", duration: 20 },
3004: { uuid: 3004, icon: "1020", attr: Attrs.SPEED, value: 50, desc: "20秒内移速 +50%", isSpecial: false,name: "神行药水", duration: 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: 20, desc: "60秒内攻击力 +20%", isSpecial: false,name: "力量药剂", duration: 60 },
3006: { uuid: 3006, icon: "1020", attr: Attrs.AS, value: 20, desc: "60秒内攻速 +20%", isSpecial: false,name: "敏捷药剂", duration: 60 },
3007: { uuid: 3007, icon: "1020", attr: Attrs.DEF, value: 20, desc: "60秒内防御 +20%", isSpecial: false,name: "护甲药剂", duration: 60 },
3008: { uuid: 3008, icon: "1020", attr: Attrs.SPEED, value: 20, desc: "60秒内移速 +20%", isSpecial: false,name: "轻灵药剂", duration: 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: 50, desc: "20秒内闪避率 +50%", isSpecial: false,name: "残影药水", duration: 20 },
3010: { uuid: 3010, icon: "1020", attr: Attrs.DODGE, value: 20, desc: "60秒内闪避率 +20%", 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: 20 },
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],
// 2阶属性
5: [2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114],
// 3阶属性
10: [2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214],
// 4阶属性
15: [2301, 2302, 2303, 2304, 2305, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2313, 2314]
};
export const CanSelectPotions: Record<number, number[]> = {

View File

@@ -103,7 +103,9 @@ export enum FightSet {
LVUP_GOLD_UP=50,//升级需要的金币
CHOU_GOLD=100,//抽卡需要的金币
BACK_RANG=30,//后退范围
FiIGHT_TIME=60*10,//战斗时间
}
export enum IndexSet {
/** 英雄基础层级 */
HERO = 2000,

View File

@@ -317,7 +317,12 @@ export class HeroViewComp extends CCComp {
var node = instantiate(prefab);
node.parent = this.node;
}
private deaded(){
var path = "game/skill/end/atked";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.parent = this.node;
}
// 注意BaseUp 逻辑已移到 HeroAttrSystem.update()
// 注意updateTemporaryBuffsDebuffs 逻辑已移到 HeroAttrSystem.update()
@@ -404,6 +409,7 @@ export class HeroViewComp extends CCComp {
}
// 播放死亡特效
this.deaded();
this.as.dead();

View File

@@ -35,8 +35,10 @@ export class MissionComp extends CCComp {
chou_node:Node = null!
@property(Node)
time_node:Node = null!
@property(Node)
binfo_node:Node = null!
FightTime:number = FightSet.FiIGHT_TIME
/** 剩余复活次数 */
revive_times: number = 1;
rewards:any[]=[]
@@ -46,6 +48,8 @@ export class MissionComp extends CCComp {
diamond:0
}
private lastTimeStr: string = "";
// 记录已触发的特殊刷怪索引
private spawnedSpecialIndices: Set<number> = new Set();
@@ -66,13 +70,23 @@ export class MissionComp extends CCComp {
if(smc.mission.in_fight){
if(smc.mission.stop_mon_action) return
smc.vmdata.mission_data.fight_time+=dt
smc.vmdata.mission_data.time-=dt
this.FightTime-=dt
// 检查特殊刷怪时间
this.checkSpecialSpawns(smc.vmdata.mission_data.fight_time);
this.update_time();
}
}
update_time(){
let time = Math.max(0, this.FightTime);
let m = Math.floor(time / 60);
let s = Math.floor(time % 60);
let str = `${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;
if(str != this.lastTimeStr){
this.time_node.getChildByName("time").getComponent(Label).string = str;
this.lastTimeStr = str;
}
}
private checkSpecialSpawns(fightTime: number) {
SpecialMonsterSchedule.forEach((item, index) => {
if (!this.spawnedSpecialIndices.has(index) && fightTime >= item.time) {
@@ -261,7 +275,7 @@ do_ad(){
smc.vmdata.mission_data.in_fight=false
smc.vmdata.mission_data.fight_time=0
smc.vmdata.mission_data.level=0
smc.vmdata.mission_data.time=15*60
this.FightTime=FightSet.FiIGHT_TIME
this.rewards=[] // 改为数组,用于存储掉落物品列表
this.revive_times = 1; // 每次任务开始重置复活次数
this.spawnedSpecialIndices.clear(); // 重置特殊刷怪记录