From 753563186a499aed106a86084c072b82f2286ebb Mon Sep 17 00:00:00 2001 From: panFD Date: Sat, 15 Aug 2026 16:05:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor(skill&hero):=20=E6=B8=85=E7=90=86?= =?UTF-8?q?=E5=86=97=E4=BD=99=E6=8A=80=E8=83=BD=E9=85=8D=E7=BD=AE=E5=B9=B6?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=8B=B1=E9=9B=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 移除了SkillSet中多个未使用的技能配置项 2. 调整了部分英雄的职业类型与默认技能 3. 修改了英雄节点的显示状态与位置偏移 4. 更新了技能预制件的参数配置 --- assets/resources/game/heros/top.prefab | 24 ++++++------ assets/resources/game/skill/atk/a3.prefab | 9 +++-- assets/script/game/common/config/SkillSet.ts | 39 ++------------------ assets/script/game/common/config/heroSet.ts | 22 +++++------ 4 files changed, 33 insertions(+), 61 deletions(-) diff --git a/assets/resources/game/heros/top.prefab b/assets/resources/game/heros/top.prefab index 73c84b12..646b0463 100644 --- a/assets/resources/game/heros/top.prefab +++ b/assets/resources/game/heros/top.prefab @@ -2467,7 +2467,7 @@ "__id__": 104 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { "__id__": 106 @@ -2603,7 +2603,7 @@ "__id__": 104 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { "__id__": 112 @@ -2739,7 +2739,7 @@ "__id__": 104 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { "__id__": 118 @@ -2875,7 +2875,7 @@ "__id__": 104 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { "__id__": 124 @@ -2890,7 +2890,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": -15, - "y": 7.5, + "y": 22.5, "z": 0 }, "_lrot": { @@ -3011,7 +3011,7 @@ "__id__": 104 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { "__id__": 130 @@ -3026,7 +3026,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 7.5, + "y": 22.5, "z": 0 }, "_lrot": { @@ -3147,7 +3147,7 @@ "__id__": 104 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { "__id__": 136 @@ -3162,7 +3162,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 15, - "y": 7.5, + "y": 22.5, "z": 0 }, "_lrot": { @@ -3283,7 +3283,7 @@ "__id__": 104 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { "__id__": 142 @@ -3298,7 +3298,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": -15, - "y": 22.5, + "y": 37.5, "z": 0 }, "_lrot": { @@ -3521,6 +3521,8 @@ "__id__": 0 }, "fileId": "5cqmSlUWRE1odvmHyq77SB", + "instance": null, + "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { diff --git a/assets/resources/game/skill/atk/a3.prefab b/assets/resources/game/skill/atk/a3.prefab index 73325895..8cdfaeef 100644 --- a/assets/resources/game/skill/atk/a3.prefab +++ b/assets/resources/game/skill/atk/a3.prefab @@ -250,11 +250,12 @@ }, "atk_x": 10, "atk_y": 15, - "_id": "", - "runType": 1, + "runType": 0, "endType": 2, "speed": 720, - "time": 0 + "time": 0, + "distance": 0, + "_id": "" }, { "__type__": "cc.CompPrefabInfo", @@ -340,4 +341,4 @@ "instance": null, "targetOverrides": null } -] +] \ No newline at end of file diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index 8d29acfc..15dd8232 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -205,21 +205,9 @@ export function mergeSkillParams(config: SkillConfig, overrides?: SkillOverrides */ export const SkillSet: Record = { /** ========== 单体攻击基础技能 ========== 升级方向是 最多向 3 个目标发射技能实体 - * 6001 火球 基础攻击 暴击取向 - * 6002 紫球 怪物法师类攻击样式 - * 6003 白球 击晕取向 - * 6004 水球 溅射 分裂取向,一定概率分裂多个 - * 6008 箭矢 单体攻击, - * 6009 箭矢蓝 溅射,分裂取向,一定概率分裂多个 - * 6010 箭矢黄 击晕取向 **/ 6001: { - uuid: 6001, name: "飞剑", sp_name: "a1", icon: "Sword-FA_WP_Main_Sword_003_PurpleSilver", 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, - RType: RType.bezier, EType: EType.collision, info: "造成攻击力100%的伤害", - }, - 6002: { - uuid: 6002, name: "飞刀", sp_name: "a2", icon: "Sword-FA_WP_Main_Sword_009_GraySilver", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk", + uuid: 6001, name: "飞剑", sp_name: "a2", icon: "Sword-FA_WP_Main_Sword_003_PurpleSilver", 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, RType: RType.bezier, EType: EType.collision, info: "造成攻击力100%的伤害", }, @@ -233,11 +221,7 @@ export const SkillSet: Record = { 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%的伤害", }, - 6005: { - uuid: 6005, name: "飞枪", sp_name: "a5", icon: "Spear-FA_WP_Main_Spear_010_MetalBlue", 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, - RType: RType.bezier, EType: EType.collision, info: "造成攻击力100%的伤害", - }, + 6006: { uuid: 6006, 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, @@ -263,16 +247,7 @@ export const SkillSet: Record = { DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote, RType: RType.bezier, EType: EType.collision, bezier_start_y: 20, bezier_mid_y: 140, bezier_arc: 1.05, info: "造成攻击力100%的伤害", }, - 6011: { - uuid: 6011, name: "飞锤", sp_name: "b2", icon: "Blunt-FA_WP_Main_Blunt_005_Gray", 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, - RType: RType.bezier, EType: EType.collision, info: "造成攻击力100%的伤害", - }, - 6012: { - uuid: 6012, name: "飞斧", sp_name: "b2", icon: "Axe-FA_WP_Main_Axe_002_WoodGray", 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, - RType: RType.bezier, EType: EType.collision, info: "造成攻击力100%的伤害", - }, + 6013: { uuid: 6013, name: "蓝魔球", sp_name: "m1", icon: "Sub_Item-FA_WP_Sub_MagicBall_001_Blue", 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, @@ -293,13 +268,7 @@ export const SkillSet: Record = { 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%的伤害", }, - /*** ======中阶范围攻击技能 ==== - * 都带有穿刺属性,至少穿透1 个目标 攻击2 个目标, 升级方向是 最多 穿透3 个攻击 4 个目标 - * 6101 火球 基础属性,暴击取向 - * 6102 暗影球 怪物法师类攻击样式 - * 6103 光球 击晕取向 - * 6104 水球 溅射:分裂多个 - **/ + 6101: { uuid: 6101, name: "火球", sp_name: "fb-1", icon: "Stat_FireDamage", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk", 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, diff --git a/assets/script/game/common/config/heroSet.ts b/assets/script/game/common/config/heroSet.ts index 04e5c126..81b6a0e5 100644 --- a/assets/script/game/common/config/heroSet.ts +++ b/assets/script/game/common/config/heroSet.ts @@ -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" @@ -397,8 +397,8 @@ export const HeroInfo: Record = { }, // 5002 影袭刺客 — atking 自身攻击 5002: { - uuid: 5002, name: "影袭刺客", path: "hc1", fac: FacSet.HERO, card_lv: 1, lv: 1, type: HType.Melee, grow_type: HGrowType.Assassin, role: HRole.Assassin, hp: 300, ap: 22, - skills: { 6006: { uuid: 6006, lv: 1, cd: AtkSpeedSet[AtkSpeedLv.Fast].cd, ccd: 0 } }, + uuid: 5002, name: "影袭刺客", path: "hc1", fac: FacSet.HERO, card_lv: 1, lv: 1, type: HType.Mid, grow_type: HGrowType.Assassin, role: HRole.Assassin, hp: 300, ap: 22, + skills: { 6003: { uuid: 6003, lv: 1, cd: AtkSpeedSet[AtkSpeedLv.Fast].cd, ccd: 0 } }, atking: { 6401: [ { lv: 1, s_lv: SkillLv.Lv1, t_num: 5, overrides: { TGroup: TGroup.Self, ap: 1 } }, @@ -463,8 +463,8 @@ export const HeroInfo: Record = { }, // 5102 致命杀手 — atking 暴击(更高数值) 5102: { - uuid: 5102, name: "致命杀手", path: "hc2", fac: FacSet.HERO, card_lv: 2, lv: 1, type: HType.Melee, grow_type: HGrowType.Assassin, role: HRole.Assassin, hp: 600, ap: 46, - skills: { 6006: { uuid: 6006, lv: 1, cd: AtkSpeedSet[AtkSpeedLv.Fast].cd, ccd: 0 } }, + uuid: 5102, name: "致命杀手", path: "hc2", fac: FacSet.HERO, card_lv: 2, lv: 1, type: HType.Mid, grow_type: HGrowType.Assassin, role: HRole.Assassin, hp: 600, ap: 46, + skills: { 6003: { uuid: 6003, lv: 1, cd: AtkSpeedSet[AtkSpeedLv.Fast].cd, ccd: 0 } }, atking: { 6403: [ { lv: 1, s_lv: SkillLv.Lv1, t_num: 5, overrides: { TGroup: TGroup.Self, timed_buff_id: 7012, buff_value: 5, buff_duration: 5 } }, @@ -513,7 +513,7 @@ export const HeroInfo: Record = { }, // 5106 破甲射手 — atking 自身穿透伤害(计时buff增强) 5106: { - uuid: 5106, name: "破甲射手", path: "ha1", fac: FacSet.HERO, card_lv: 2, lv: 1, type: HType.Long, grow_type: HGrowType.Assassin, role: HRole.Archer, hp: 287, ap: 64, + uuid: 5106, name: "破甲射手", path: "ha1", fac: FacSet.HERO, card_lv: 2, lv: 1, type: HType.Mid, grow_type: HGrowType.Assassin, role: HRole.Archer, hp: 287, ap: 64, skills: { 6008: { uuid: 6008, lv: 1, cd: AtkSpeedSet[AtkSpeedLv.Normal].cd, ccd: 0 } }, atking: { 6512: [ @@ -542,7 +542,7 @@ export const HeroInfo: Record = { }, // 5202 援护射手 — atking 队友攻击(范围扩大) 5202: { - uuid: 5202, name: "援护射手", path: "ha1", fac: FacSet.HERO, card_lv: 3, lv: 1, type: HType.Long, grow_type: HGrowType.Assassin, role: HRole.Archer, hp: 430, ap: 96, + uuid: 5202, name: "援护射手", path: "ha1", fac: FacSet.HERO, card_lv: 3, lv: 1, type: HType.Mid, grow_type: HGrowType.Assassin, role: HRole.Archer, hp: 430, ap: 96, skills: { 6008: { uuid: 6008, lv: 1, cd: AtkSpeedSet[AtkSpeedLv.Normal].cd, ccd: 0 } }, atking: { 6401: [ @@ -608,7 +608,7 @@ export const HeroInfo: Record = { }, // 5302 破灭游侠 — atking 队友暴伤(范围+数值) 5302: { - uuid: 5302, name: "破灭游侠", path: "ha2", fac: FacSet.HERO, card_lv: 4, lv: 1, type: HType.Long, grow_type: HGrowType.Assassin, role: HRole.Archer, hp: 573, ap: 128, + uuid: 5302, name: "破灭游侠", path: "ha2", fac: FacSet.HERO, card_lv: 4, lv: 1, type: HType.Mid, grow_type: HGrowType.Assassin, role: HRole.Archer, hp: 573, ap: 128, skills: { 6008: { uuid: 6008, lv: 1, cd: AtkSpeedSet[AtkSpeedLv.Normal].cd, ccd: 0 } }, atking: { 6404: [ @@ -621,8 +621,8 @@ export const HeroInfo: Record = { }, // 5303 亡语刺客 — dead 全队暴击+暴伤(双效果) 5303: { - uuid: 5303, name: "亡语刺客", path: "hc3", fac: FacSet.HERO, card_lv: 4, lv: 1, type: HType.Melee, grow_type: HGrowType.Assassin, role: HRole.Assassin, hp: 1200, ap: 90, - skills: { 6006: { uuid: 6006, lv: 1, cd: AtkSpeedSet[AtkSpeedLv.Fast].cd, ccd: 0 } }, + uuid: 5303, name: "亡语刺客", path: "hc3", fac: FacSet.HERO, card_lv: 4, lv: 1, type: HType.Mid, grow_type: HGrowType.Assassin, role: HRole.Assassin, hp: 1200, ap: 90, + skills: { 6003: { uuid: 6003, lv: 1, cd: AtkSpeedSet[AtkSpeedLv.Fast].cd, ccd: 0 } }, dead: { 6403: [ { lv: 1, s_lv: SkillLv.Lv1, t_num: 1, overrides: { TGroup: TGroup.Team, timed_buff_id: 7012, buff_value: 5, buff_duration: 5 } }, @@ -689,7 +689,7 @@ export const HeroInfo: Record = { }, // 5402 战歌游侠 — atking 攻击 + field 攻速光环(双技能) 5402: { - uuid: 5402, name: "战歌游侠", path: "ha3", fac: FacSet.HERO, card_lv: 5, lv: 1, type: HType.Long, grow_type: HGrowType.Assassin, role: HRole.Archer, hp: 717, ap: 160, + uuid: 5402, name: "战歌游侠", path: "ha3", fac: FacSet.HERO, card_lv: 5, lv: 1, type: HType.Mid, grow_type: HGrowType.Assassin, role: HRole.Archer, hp: 717, ap: 160, skills: { 6008: { uuid: 6008, lv: 1, cd: AtkSpeedSet[AtkSpeedLv.Fast].cd, ccd: 0 } }, atking: { 6401: [