From d37bbbcd7210243dd33094c6f3d15339268b7f96 Mon Sep 17 00:00:00 2001 From: pan Date: Mon, 7 Sep 2026 17:18:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(hero):=20=E4=BF=AE=E6=AD=A3=E6=B2=BB?= =?UTF-8?q?=E7=96=97=E7=89=B9=E6=95=88=E7=9A=84=E8=B5=84=E6=BA=90=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=B8=8E=E5=8A=A8=E7=94=BB=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 将治疗特效的资源路径从heathed改为end/heal 2. 调整治疗动画的采样率和时长以优化表现 3. 新增攻击力提升、冷却缩减的技能结束特效预制体 --- .../resources/game/skill/anm/buff/heal.anim | 16 +- assets/resources/game/skill/end/up_ap.prefab | 274 ++++++++++++++++++ .../game/skill/end/up_ap.prefab.meta | 1 + assets/resources/game/skill/end/up_cd.prefab | 274 ++++++++++++++++++ .../game/skill/end/up_cd.prefab.meta | 13 + assets/script/game/hero/HeroViewComp.ts | 2 +- 6 files changed, 571 insertions(+), 9 deletions(-) create mode 100644 assets/resources/game/skill/end/up_ap.prefab create mode 100644 assets/resources/game/skill/end/up_ap.prefab.meta create mode 100644 assets/resources/game/skill/end/up_cd.prefab create mode 100644 assets/resources/game/skill/end/up_cd.prefab.meta diff --git a/assets/resources/game/skill/anm/buff/heal.anim b/assets/resources/game/skill/anm/buff/heal.anim index 4c3c9a7d..2bae1d1c 100644 --- a/assets/resources/game/skill/anm/buff/heal.anim +++ b/assets/resources/game/skill/anm/buff/heal.anim @@ -7,11 +7,11 @@ "embeddedPlayerGroups": [] }, "_native": "", - "sample": 18, + "sample": 14, "speed": 1, "wrapMode": 1, "enableTrsBlending": false, - "_duration": 0.3888888888888889, + "_duration": 0.5, "_hash": 500763545, "_tracks": [ { @@ -69,12 +69,12 @@ "__type__": "cc.ObjectCurve", "_times": [ 0, - 0.05555555555555555, - 0.1111111111111111, - 0.16666666666666666, - 0.2222222222222222, - 0.2777777777777778, - 0.3333333333333333 + 0.07142857142857142, + 0.14285714285714285, + 0.21428571428571427, + 0.2857142857142857, + 0.35714285714285715, + 0.42857142857142855 ], "_values": [ { diff --git a/assets/resources/game/skill/end/up_ap.prefab b/assets/resources/game/skill/end/up_ap.prefab new file mode 100644 index 00000000..1e19ca30 --- /dev/null +++ b/assets/resources/game/skill/end/up_ap.prefab @@ -0,0 +1,274 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "up_ap", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "up_ap", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [ + { + "__id__": 8 + }, + { + "__id__": 10 + } + ], + "_prefab": { + "__id__": 12 + }, + "_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": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "skill", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + }, + { + "__id__": 5 + } + ], + "_prefab": { + "__id__": 7 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -10.802, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1.2, + "y": 1.2, + "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": 91, + "height": 118 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b4sNQPJWFKha7x75SWXmRj" + }, + { + "__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": { + "__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@7dc71", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 1, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0.2, + "_fillRange": 1, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "9a+65VIghBm4HQxuHPQ/mg" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "7a5LvbdlxEc6FKa7cun2oB", + "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": 80, + "height": 110 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "63NP9yq3hEUKD/OZZZ5t7x" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 11 + }, + "playOnLoad": true, + "_clips": [ + { + "__uuid__": "b01ee4bf-1c59-4158-806f-488e00ed7b5a", + "__expectedType__": "cc.AnimationClip" + } + ], + "_defaultClip": { + "__uuid__": "b01ee4bf-1c59-4158-806f-488e00ed7b5a", + "__expectedType__": "cc.AnimationClip" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c6LOemuvJKyYCqlF/yUJcr" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c46/YsCPVOJYA4mWEpNYRx", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/game/skill/end/up_ap.prefab.meta b/assets/resources/game/skill/end/up_ap.prefab.meta new file mode 100644 index 00000000..f9ee5f20 --- /dev/null +++ b/assets/resources/game/skill/end/up_ap.prefab.meta @@ -0,0 +1 @@ +{"ver":"1.1.50","importer":"prefab","imported":true,"uuid":"1e8ca165-c3f4-4d82-adfb-4715f191dd3f","files":[".json"],"subMetas":{},"userData":{"syncNodeName":"up_ap"}} diff --git a/assets/resources/game/skill/end/up_cd.prefab b/assets/resources/game/skill/end/up_cd.prefab new file mode 100644 index 00000000..73ecd89f --- /dev/null +++ b/assets/resources/game/skill/end/up_cd.prefab @@ -0,0 +1,274 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "up_cd", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "up_cd", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [ + { + "__id__": 8 + }, + { + "__id__": 10 + } + ], + "_prefab": { + "__id__": 12 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -12.537, + "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": "skill", + "_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": 1.2, + "y": 1.2, + "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": 91, + "height": 109 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b4sNQPJWFKha7x75SWXmRj" + }, + { + "__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": { + "__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6@57c99", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 1, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0.2, + "_fillRange": 1, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "3d46f945-3f07-477e-a95a-b49557d552c6", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "9a+65VIghBm4HQxuHPQ/mg" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "7a5LvbdlxEc6FKa7cun2oB", + "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": 80, + "height": 110 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "63NP9yq3hEUKD/OZZZ5t7x" + }, + { + "__type__": "cc.Animation", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 11 + }, + "playOnLoad": true, + "_clips": [ + { + "__uuid__": "cbac7690-586d-42bf-bd2c-2e2fc279b819", + "__expectedType__": "cc.AnimationClip" + } + ], + "_defaultClip": { + "__uuid__": "cbac7690-586d-42bf-bd2c-2e2fc279b819", + "__expectedType__": "cc.AnimationClip" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c6LOemuvJKyYCqlF/yUJcr" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c46/YsCPVOJYA4mWEpNYRx", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/assets/resources/game/skill/end/up_cd.prefab.meta b/assets/resources/game/skill/end/up_cd.prefab.meta new file mode 100644 index 00000000..8e38b104 --- /dev/null +++ b/assets/resources/game/skill/end/up_cd.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "2eeac68b-26a6-473b-81e1-f96b654c80fd", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "up_cd" + } +} diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index d999ae70..54c39010 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -271,7 +271,7 @@ export class HeroViewComp extends CCComp { } /** 治疗特效 */ private heathed() { - this.spawnAnimEndFx("game/skill/buff/heathed", this.node, undefined); + this.spawnAnimEndFx("game/skill/end/heal", this.node, undefined); } private deaded() { this.spawnAnimEndFx("game/skill/end/dead", this.node.parent, this.node.position);