feat(skill&hero): 添加新技能与英雄血条UI

This commit is contained in:
panFD
2026-08-15 22:40:02 +08:00
parent 93e02fa292
commit 1f4a4c5936
7 changed files with 1004 additions and 685 deletions

View File

@@ -34,20 +34,20 @@
"__id__": 104
},
{
"__id__": 154
"__id__": 160
}
],
"_active": true,
"_components": [
{
"__id__": 192
"__id__": 198
},
{
"__id__": 194
"__id__": 200
}
],
"_prefab": {
"__id__": 196
"__id__": 202
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -2412,22 +2412,25 @@
},
{
"__id__": 141
},
{
"__id__": 147
}
],
"_active": true,
"_components": [
{
"__id__": 147
"__id__": 153
},
{
"__id__": 149
"__id__": 155
},
{
"__id__": 151
"__id__": 157
}
],
"_prefab": {
"__id__": 153
"__id__": 159
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3410,6 +3413,142 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "Blood",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 104
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 148
},
{
"__id__": 150
}
],
"_prefab": {
"__id__": 152
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 37.5,
"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.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 147
},
"_enabled": true,
"__prefab": {
"__id__": 149
},
"_contentSize": {
"__type__": "cc.Size",
"width": 15,
"height": 15
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "63VeKhX09FEZh48s67mjl8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 147
},
"_enabled": true,
"__prefab": {
"__id__": 151
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 0,
"b": 0,
"a": 255
},
"_spriteFrame": {
"__uuid__": "abc35b6e-b052-4835-a3a3-cb85abd47f4d@b9e62",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "58T0DOBFdIjYOp0YDM5mU8"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "a96dNbPZtGHIAUTPYO1eo7",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -3420,7 +3559,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 148
"__id__": 154
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3448,7 +3587,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 150
"__id__": 156
},
"_alignFlags": 4,
"_target": null,
@@ -3484,7 +3623,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 152
"__id__": 158
},
"_resizeMode": 0,
"_layoutType": 3,
@@ -3534,9 +3673,6 @@
"__id__": 1
},
"_children": [
{
"__id__": 155
},
{
"__id__": 161
},
@@ -3548,22 +3684,25 @@
},
{
"__id__": 179
},
{
"__id__": 185
}
],
"_active": false,
"_components": [
{
"__id__": 185
"__id__": 191
},
{
"__id__": 187
"__id__": 193
},
{
"__id__": 189
"__id__": 195
}
],
"_prefab": {
"__id__": 191
"__id__": 197
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3600,20 +3739,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 154
"__id__": 160
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 156
"__id__": 162
},
{
"__id__": 158
"__id__": 164
}
],
"_prefab": {
"__id__": 160
"__id__": 166
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3650,11 +3789,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 155
"__id__": 161
},
"_enabled": true,
"__prefab": {
"__id__": 157
"__id__": 163
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3678,11 +3817,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 155
"__id__": 161
},
"_enabled": true,
"__prefab": {
"__id__": 159
"__id__": 165
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3736,20 +3875,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 154
"__id__": 160
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 162
"__id__": 168
},
{
"__id__": 164
"__id__": 170
}
],
"_prefab": {
"__id__": 166
"__id__": 172
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3786,11 +3925,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 161
"__id__": 167
},
"_enabled": true,
"__prefab": {
"__id__": 163
"__id__": 169
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3814,11 +3953,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 161
"__id__": 167
},
"_enabled": true,
"__prefab": {
"__id__": 165
"__id__": 171
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -3872,20 +4011,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 154
"__id__": 160
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 168
"__id__": 174
},
{
"__id__": 170
"__id__": 176
}
],
"_prefab": {
"__id__": 172
"__id__": 178
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -3922,11 +4061,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 167
"__id__": 173
},
"_enabled": true,
"__prefab": {
"__id__": 169
"__id__": 175
},
"_contentSize": {
"__type__": "cc.Size",
@@ -3950,11 +4089,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 167
"__id__": 173
},
"_enabled": true,
"__prefab": {
"__id__": 171
"__id__": 177
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -4008,20 +4147,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 154
"__id__": 160
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 174
"__id__": 180
},
{
"__id__": 176
"__id__": 182
}
],
"_prefab": {
"__id__": 178
"__id__": 184
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -4058,11 +4197,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 173
"__id__": 179
},
"_enabled": true,
"__prefab": {
"__id__": 175
"__id__": 181
},
"_contentSize": {
"__type__": "cc.Size",
@@ -4086,11 +4225,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 173
"__id__": 179
},
"_enabled": true,
"__prefab": {
"__id__": 177
"__id__": 183
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -4144,20 +4283,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 154
"__id__": 160
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 180
"__id__": 186
},
{
"__id__": 182
"__id__": 188
}
],
"_prefab": {
"__id__": 184
"__id__": 190
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -4194,11 +4333,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 179
"__id__": 185
},
"_enabled": true,
"__prefab": {
"__id__": 181
"__id__": 187
},
"_contentSize": {
"__type__": "cc.Size",
@@ -4222,11 +4361,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 179
"__id__": 185
},
"_enabled": true,
"__prefab": {
"__id__": 183
"__id__": 189
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -4280,11 +4419,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 154
"__id__": 160
},
"_enabled": true,
"__prefab": {
"__id__": 186
"__id__": 192
},
"_contentSize": {
"__type__": "cc.Size",
@@ -4308,11 +4447,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 154
"__id__": 160
},
"_enabled": true,
"__prefab": {
"__id__": 188
"__id__": 194
},
"_alignFlags": 4,
"_target": null,
@@ -4344,11 +4483,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 154
"__id__": 160
},
"_enabled": true,
"__prefab": {
"__id__": 190
"__id__": 196
},
"_resizeMode": 0,
"_layoutType": 3,
@@ -4399,7 +4538,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 193
"__id__": 199
},
"_contentSize": {
"__type__": "cc.Size",
@@ -4427,7 +4566,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 195
"__id__": 201
},
"hpProgressBar": {
"__id__": 47

View File

@@ -1,17 +1,17 @@
[
{
"__type__": "cc.AnimationClip",
"_name": "atk01",
"_name": "atk02",
"_objFlags": 0,
"__editorExtras__": {
"embeddedPlayerGroups": []
},
"_native": "",
"sample": 24,
"sample": 30,
"speed": 1,
"wrapMode": 1,
"enableTrsBlending": false,
"_duration": 0.20833333333333334,
"_duration": 0.4,
"_hash": 500763545,
"_tracks": [
{
@@ -21,12 +21,12 @@
"_exoticAnimation": null,
"_events": [
{
"frame": 0.08333333333333333,
"frame": 0.13333333333333333,
"func": "",
"params": []
},
{
"frame": 0.08333333333333333,
"frame": 0.13333333333333333,
"func": "atk",
"params": []
}
@@ -80,12 +80,27 @@
"__type__": "cc.ObjectCurve",
"_times": [
0,
0.041666666666666664,
0.08333333333333333,
0.125,
0.16666666666666666
0.03333333333333333,
0.06666666666666667,
0.1,
0.13333333333333333,
0.16666666666666666,
0.2,
0.23333333333333334,
0.26666666666666666,
0.3,
0.3333333333333333,
0.36666666666666664
],
"_values": [
{
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@c9de1",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@fae26",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@c9de1",
"__expectedType__": "cc.SpriteFrame"
@@ -105,6 +120,26 @@
{
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@360bd",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@2c4ee",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@82a83",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@7b4b4",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@dab14",
"__expectedType__": "cc.SpriteFrame"
},
{
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@5d13a",
"__expectedType__": "cc.SpriteFrame"
}
]
},

View File

@@ -257,6 +257,7 @@
"endType": 0,
"speed": 720,
"time": 0,
"distance": 0,
"_id": ""
},
{

View File

@@ -173,7 +173,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@3c745",
"__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@ead01",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
@@ -257,6 +257,7 @@
"endType": 0,
"speed": 720,
"time": 0,
"distance": 0,
"_id": ""
},
{

File diff suppressed because it is too large Load Diff

View File

@@ -221,7 +221,6 @@ export const SkillSet: Record<number, SkillConfig> = {
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.Melee, is_accel: true,
RType: RType.bezier, EType: EType.collision, info: "造成攻击力100%的伤害",
},
6004: {
uuid: 6004, name: "攻击", sp_name: "atk1", icon: "Stat_Attack_01", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.Melee, is_accel: true,
@@ -274,13 +273,18 @@ export const SkillSet: Record<number, SkillConfig> = {
DTType: DTType.single, stun: 0, ap: 100, hit_count: 2, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
RType: RType.bezier, EType: EType.collision, info: "造成攻击力100%的伤害, 一定几率暴击, 高阶技能",
},
//怪物法师统一使用 暗影球
//大招
6102: {
uuid: 6102, name: "飓风", sp_name: "fb-2", icon: "Stat_Mana", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
DTType: DTType.single, ap: 100, hit_count: 2, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
RType: RType.linear, EType: EType.collision, info: "造成攻击力100%的伤害, 高阶技能",
},
// 6201 陨石术
6103: {
uuid: 6004, name: "闪击", sp_name: "atk3", icon: "Stat_Attack_01", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
DTType: DTType.single, ap: 150, hit_count: 5, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.Melee, is_accel: true,
RType: RType.bezier, EType: EType.collision, info: "对周围的敌人造成攻击力150%的伤害",//可以匹配 易伤增强debuff
},
6201: {
uuid: 6201, name: "陨石术", sp_name: "fb-3", icon: "Stat_Tripleshot", TGroup: TGroup.Enemy, readyAnm: "blues", endAnm: "", act: "max",
DTType: DTType.aoe_grid, stun: 0, ap: 150, hit_count: 6, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,

View File

@@ -1,4 +1,4 @@
import { v3 } from "cc"
import { v3 } from "cc"
import { BoxSet, FacSet, FightSet } from "./GameSet"
import { SkillOverrides, TGroup, SkillSet, FieldSkillSet, SkillConfig, SkillKind, FieldSkillConfig, FieldSkillType, mergeSkillParams } from "./SkillSet"
import { BuffList, BuffConfig, ModOp } from "./BuffSet"