From e97f2b0c489884a5cdb297da412e36ba8c17a98f Mon Sep 17 00:00:00 2001 From: walkpan Date: Thu, 14 May 2026 22:40:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4hero=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=B3=A8=E9=87=8A=E5=B9=B6=E4=BF=AE=E5=A4=8D=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 新增三种英雄流派的配置说明文档 2. 将HInfoComp中的Number属性类型替换为CCInteger --- assets/script/game/common/config/heros.md | 3 +++ assets/script/game/map/HInfoComp.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/script/game/common/config/heros.md b/assets/script/game/common/config/heros.md index 96589d44..0a2522ff 100644 --- a/assets/script/game/common/config/heros.md +++ b/assets/script/game/common/config/heros.md @@ -85,3 +85,6 @@ 怪物和boss 不配置 call fstart fend技能,通过skills多技能触发 ## 4 流派初步 +数值型: 主要强化ap 和 hp,辅助其他特殊技能 +技能型: 主要强化技能 范围伤害,穿刺,多目标,风怒 范围攻击的范围+大 等 +控制型: 主要强化 冰冻+击退 \ No newline at end of file diff --git a/assets/script/game/map/HInfoComp.ts b/assets/script/game/map/HInfoComp.ts index dd513708..cb1ecea9 100644 --- a/assets/script/game/map/HInfoComp.ts +++ b/assets/script/game/map/HInfoComp.ts @@ -19,7 +19,7 @@ * - Hero —— 英雄 ECS 实体类(用于出售删除) * - UIID.IBox —— 英雄详情弹窗 ID */ -import { _decorator, Animation, AnimationClip, Button, Event, Label, Node, NodeEventType, Sprite, resources } from "cc"; +import { _decorator, Animation, AnimationClip, Button, Event, Label, Node, NodeEventType, Sprite, resources, CCInteger } from "cc"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; import { HeroInfo } from "../common/config/heroSet"; @@ -63,7 +63,7 @@ export class HInfoComp extends CCComp { @property(Node) lv_node=null! - @property(Number) + @property(CCInteger) node_index=0 /** 绑定的英雄 ECS 实体 ID */