Commit Graph

2303 Commits

Author SHA1 Message Date
pan
5d55f3bdb1 style: 格式化代码并修复代码风格问题
本次提交主要对HeroAttrsComp和HeroViewComp两个文件进行了代码风格统一优化:
1. 统一变量声明的空格规范,修复类型标注前后的空格问题
2. 修正函数参数默认值的空格格式
3. 调整空行和注释的排版一致性
4. 修复字符串类型标注的大小写问题
5. 新增等级变更脏标记和对应的UI显示逻辑
6. 优化了部分条件判断和逻辑代码的可读性
2026-07-21 16:33:52 +08:00
pan
2234b9021d feat(MissionCard): 添加英雄卡池关闭按钮功能
新增closeHeros节点绑定与点击回调,实现卡池收起逻辑,同步更新卡池显示状态与英雄信息面板。
优化进入准备阶段的交互表现,确保卡池初始状态与手动操作一致。
2026-07-21 16:12:38 +08:00
pan
d279ef19d8 fix(card prefab): 修复卡牌预制体的节点和属性配置
新增了金币不足提示的预制体实例,调整了部分节点的位置和尺寸参数,修正了prefab关联ID,添加了缺失的no_cion_node节点引用
2026-07-21 15:07:42 +08:00
pan
97ff09669c feat(CardComp): add coin insufficient prompt feature
1. 新增金币不足提示节点配置与显示逻辑
2. 优化等级文本的分隔符为更直观的箭头符号
3. 修复提示节点未默认隐藏的问题
2026-07-21 14:24:46 +08:00
pan
486090682a refactor(map): remove unused NewWave event listener and handler
删除了废弃的 NewWave 事件监听和对应的 onNewWave 处理函数,清理冗余代码。
2026-07-21 14:22:09 +08:00
pan
c1d461516b feat(card): 实现英雄卡升级标识与交互优化
1. 新增升级专用动画资源与up_icon_node节点
2. 重构等级显示逻辑,升级卡显示前后等级
3. 调整召唤按钮文案为"升级"或"招募"适配场景
4. 移除无用的getLvColor导入与旧的层级控制逻辑
2026-07-21 11:02:27 +08:00
pan
9a0dbaf41d fix(skill&hero): 添加击退属性配置与处理逻辑
1. 移除英雄配置注释里废弃属性的提示
2. 为小刺客技能添加击退概率覆盖参数
3. 补全技能系统中击退属性的计算逻辑
4. 修复代码格式与缩进问题
2026-07-21 10:19:56 +08:00
pan
011446acc6 fix(CardComp): 修复升级卡动画加载竞态校验逻辑
移除了对card_uuid、card_type的错误竞态校验,仅保留token判断,解决升级卡动画加载被误丢弃的问题
2026-07-21 09:44:50 +08:00
pan
c228542213 feat(skill): 新增fb-1、fb-2技能特效,替换原有line系列技能
1.  新增fb-1、fb-2的预制体与动画资源
2.  删除line1-line5及atk_c6旧技能资源
3.  更新SkillSet配置,将6101、6102、6103技能指向新特效
4.  调整hero_move界面的UI位置参数
2026-07-21 09:29:31 +08:00
pan
4d71675c32 fix(map): 修复抽卡重复英雄和英雄站位偏移问题
1. 新增英雄卡UUID去重逻辑,避免单次抽卡出现重复英雄
2. 调整英雄初始站位坐标,修正布局偏移问题
3. 统一代码格式,修复缩进和类型注解不规范问题
2026-07-21 08:53:10 +08:00
panFD
89e8f2b091 fix(map): 新增重复召唤英雄拦截与抽卡过滤逻辑
新增英雄召唤重复校验,防止已召唤英雄被再次召唤;同时优化抽卡逻辑,不再刷出已召唤英雄的普通卡牌,仅可通过升级卡升级已召唤英雄。
2026-07-21 08:09:52 +08:00
panFD
8818ec9c3f refactor(card): 升级动态升级卡的英雄绑定逻辑
将动态升级卡从绑定英雄UUID改为绑定实体EID,适配ECS实体管理模式:
1. 更新CardConfig定义,替换target_hero_uuid为target_hero_eid
2. 新增EID反查UUID的工具方法,适配渲染和交互逻辑
3. 修改抽卡、卡牌点击和使用的全流程逻辑
4. 优化升级卡生成和匹配的稳定性
2026-07-21 00:03:44 +08:00
panFD
48e0ab06c5 refactor(monster&cast): 重构怪物移动与AOE技能目标逻辑
1. 移除固定网格站位,怪物从右侧统一出生并向左推进
2. 修改AOE技能索敌逻辑,直接使用最近敌人真实位置
3. 新增怪物自动推进与战斗停船逻辑,优化战斗体验
2026-07-20 23:20:24 +08:00
panFD
05dc771d4e fix: 调整游戏战斗站位与UI显示参数
1. 修正游戏地平线GAME_LINE数值,调整英雄和怪物的出生站位
2. 修改shadow预制体的缩放、尺寸和填充模式参数
3. 调整地图预制体的元素位置和尺寸
4. 优化技能动画的缩放参数和编辑器冗余配置
2026-07-20 22:52:43 +08:00
panFD
551715ef44 refactor(map): 注释掉战斗盒子节点的显式显隐逻辑
暂时禁用了fight节点下fbox的自动显隐操作,避免不必要的UI状态干扰
2026-07-20 22:35:28 +08:00
panFD
1612e02790 refactor(map): 重构抽卡逻辑与卡牌渲染规则
1.  实现升级卡轮询机制,按英雄UUID升序循环切换必出升级卡
2.  重构buildDrawCards抽卡流程,分离必出升级卡与随机抽取逻辑
3.  移除抽卡池内的刷新功能卡,调整特殊卡渲染逻辑
4.  统一英雄卡与升级卡的交互与渲染表现
2026-07-20 22:35:21 +08:00
panFD
cff7b4703f refactor(uiPrefab): 调整任务和英雄顶部UI的布局与组件配置
统一修改mission.prefab和top.prefab的节点激活状态、位置、尺寸,替换旧的精灵/文本组件为正确配置,清理冗余节点和组件,优化UI显示效果
2026-07-20 22:26:28 +08:00
panFD
76085c3ecd feat(map): 优化战斗流程与卡牌系统交互
1.  第一波准备阶段首个英雄召唤后自动开战,移除手动点击开始按钮
2.  重构卡牌交互逻辑,移除上划召唤改为点击召唤
3.  新增英雄卡池显隐切换功能
4.  调整卡牌预制体尺寸与布局
5.  移除特定波次技能卡弹窗逻辑
6.  简化引导流程,不再弹出Guide4
2026-07-20 22:20:18 +08:00
pan
15ab2f7b0f refactor: 重构英雄养成与卡牌系统,移除旧合成机制
1.  移除三合一英雄合成与链式合成逻辑,统一使用升级卡进行英雄等级提升
2.  重构卡池系统:移除卡池等级机制,所有英雄卡牌统一为LV1
3.  重构升级逻辑:改为按UUID精确升级场上英雄,动态生成对应升级卡
4.  更新配置常量:拆分并重构成长倍率、英雄上限等战斗配置
5.  简化抽卡逻辑:不再按卡池等级分发卡牌,改为动态混合基础卡与升级卡
6.  清理废弃代码:移除卡池升级相关的UI、逻辑与配置
2026-07-20 17:26:50 +08:00
pan
f0952ef82c refactor: 重构关卡经济与战斗流程
1.  移除战斗阶段限制,允许玩家在战斗中操作卡牌
2.  新增波次间5秒自动倒计时机制
3.  将固定波次金币奖励改为怪物死亡掉落
4.  重构卡牌面板逻辑,统一抽卡按钮状态判断
5.  清理冗余的战斗阶段状态变量与相关代码
2026-07-20 15:59:59 +08:00
panFD
279e239e3a refactor(rogue): replace random spawning with rule-based configs
Introduce hard-coded WaveConfigs (1-30), modular SquadLibrary (6 templates), and dual-layer enchant system (WaveEnchantLibrary + MonsterElite). Spawn engine now assembles squads by weight, applies global wave scaling and enchant modifiers, and rolls individual elites with bounded rate. Backward-compatible exports preserved; AffixType marked deprecated. MissionMonComp/MissionComp unchanged.
2026-07-05 22:33:42 +08:00
panFD
251caf0b36 docs(rogue): add refactor design for rule-based spawning
Replace pure-random spawning with hard-coded wave configs, modular squad templates, and dual-layer enchant system (wave + individual).
2026-07-05 22:29:08 +08:00
panFD
9ce8aac12f style(skill4): 修正技能4素材的边框值
将多处borderLeft和borderRight从89.5调整为89,统一素材边框配置
2026-07-05 14:56:34 +08:00
pan
257e0b4870 refactor(map): 重构怪物池配置,改为动态提取
将硬编码的怪物列表改为从HeroInfo动态获取,移除硬编码的怪物UUID配置,同时引入FacSet依赖来区分怪物阵营
2026-07-03 17:13:52 +08:00
pan
6038bb71c7 refactor(monster): 统一怪物类型配置管理
1. 将原RogueConfig.ts中的怪物类型枚举和名称映射迁移至公共配置heroSet.ts
2. 为所有怪物数据添加monType字段关联类型
3. 修正怪物列表中Boss类型的配置错误
2026-07-03 16:34:39 +08:00
pan
8a1175bccb feat: 新增随机旋转动画及相关资源配置
1. 新增rand动画剪辑资源,实现0.8秒内360度循环旋转缩放动画
2. 更新skill4.plist.meta的边框配置,修正图片裁切偏移
3. 优化shadow.prefab节点结构,添加带动画的阴影子节点
4. 更新map_rpg.prefab的精灵图集引用,替换原有精灵资源
2026-07-03 10:59:24 +08:00
pan
ce1eb419f1 feat(skill/atk): 批量新增攻击预制体与调整a1参数
本次提交新增了a2~a5、b1~b2、f1~f4、h1~h5、m1~m4共计20个攻击技能预制体及其元数据文件,同时调整了a1预制体的碰撞尺寸与精灵渲染模式,统一优化了攻击预制体的基础配置结构。
2026-07-03 10:39:39 +08:00
panFD
204f0f5cd9 refactor(skill): 重构技能预制件与动画资源 2026-07-03 09:25:43 +08:00
pan
6c2f1defa9 refactor(monster): 重构波次怪物管理逻辑,优化配置与流程
1.  更新怪物配置注释,修正近战/远程怪物的描述与分类
2.  移除MissionComp中过时的自适应刷怪逻辑
3.  重构MissionMonComp:删除插队刷怪队列、简化波次流程、统一怪物生成逻辑
4.  移除冗余日志与注释,优化代码可读性
5.  调整波次准备阶段的怪物生成时机与数据处理
2026-06-23 17:05:07 +08:00
pan
46fa481607 feat(skill): add movement acceleration support for skills
1. 新增SMoveComp的isAccelerate字段控制加速逻辑
2. 添加技能配置is_accel字段启用加速效果
3. 实现二次方缓入加速曲线,兼顾起步速度与最终加速度
4. 为6001号技能默认开启加速效果并调整其移动类型为直线运动
2026-06-23 11:07:57 +08:00
pan
72cdf32a75 refactor(TalentItemComp): 优化天赋卡牌UI显示逻辑
1.  复用CardConfig中的pool_lv统一卡牌背景色,与技能卡保持一致
2.  新增对驻场天赋卡的图标显示支持,使用FieldSkillSet获取图标
3.  重构图标获取逻辑,与SCardComp保持对齐避免显示异常
4.  移除冗余的wave映射背景色代码
2026-06-22 16:24:23 +08:00
pan
a8642cb788 chore: 批量更新UI预制体资源配置
1.  更新引导文案文本内容
2.  调整卡牌控件的位置、尺寸、字体样式与布局参数
3.  更新轻量卡牌控件的激活状态与精灵帧引用
4.  调整方块控件的尺寸、缩放比例与填充参数
5.  移除废弃的精灵帧元数据配置
2026-06-22 15:08:01 +08:00
panFD
d60b66350a chore(.claude): update claude settings permissions and adjust config order
1. 调整statusLine配置项的位置到文件末尾
2. 新增WebSearch、git add/commit、npm install的权限许可
2026-06-21 17:33:17 +08:00
panFD
bfa434634c fix(config-editor): main entry exports methods object + load/unload (Cocos 3.8)
Root cause of 'Method does not exist / The methods of the module is undefined':
Cocos 3.8 expects handlers inside a 'methods' export (plus load/unload hooks),
not flat on module.exports. Handlers receive args directly (no event); return
value is the request reply. Verified vs official 3.8 first/messages docs.
Also: menu path + panel title switched to literal strings (i18n showed 'undefined').
2026-06-21 16:30:39 +08:00
panFD
fb65fa79c8 test(config-editor): record Plan A verification evidence
Task 13 of plan 2026-06-20-config-editor-foundation. Captures:
- Automated BLOCKING gate: 36/36 unit tests pass
- Automated BLOCKING gate: build produces dist/main.js (9.5mb) + dist/panels/default.js (628kb)
- Necessary esbuild.config.mjs fix documented (node:fs/node:path external for panel)
- ADVISORY in-editor checklist left for human completion
- DoD mapping
2026-06-21 09:57:19 +08:00
panFD
24b5c49891 feat(config-editor): extension entry + minimal Vue panel proving end-to-end IPC
Task 12 of plan 2026-06-20-config-editor-foundation. Adds:
- src/main/index.ts: onLoad + message handlers (return value = request resolve,
  per Cocos 3.x verified IPC mechanism; fallback note left in plan)
- src/panels/default/{index,app}.ts: Editor.Panel.define host + Vue 3 minimal
  app (table switcher, key list, record JSON dump)
- static/template/default/index.html + static/style/default/index.css

Deviation from plan (necessary, flagged): esbuild.config.mjs now marks
node:fs/node:path as external for the panel entry (platform:'browser').
The plan's panel reads static template/style at runtime via Node fs, which
requires these builtins; Cocos panel runs in an Electron renderer that
provides them. Without this, esbuild errors with 'Could not resolve node:fs'.

Build verified: dist/main.js (9.5mb, typescript compiler API bundled) and
dist/panels/default.js (628kb, vue.esm-bundler bundled) both generate.
2026-06-21 09:56:02 +08:00
panFD
e3102c63ff feat(config-editor): main-process store (in-memory truth + message impls + asset-db refresh)
Task 11 of plan 2026-06-20-config-editor-foundation. Holds three TsConfigFile
instances (hero/skill/field), implements query*/validate/saveRecord/revertRecord
message handlers. saveRecord validates before persisting, rolls back on error,
and refreshes asset-db on success. HeroList read via regex.
2026-06-21 09:26:03 +08:00
panFD
6a81630f6f feat(config-editor): port buildSkillDesc to JS for panel preview 2026-06-21 09:17:50 +08:00
panFD
4a5659b7ec feat(config-editor): add validation rules (dup/required/enum/ref/overrides/herolist) with tests 2026-06-21 09:11:47 +08:00
panFD
4df88c1c90 feat(config-editor): TsConfigFile load/read/patch/add/delete/save (entry-level AST patch, .bak + syntax check)
26 IO tests green: serializer, parser (speed/enumRef/raw), TsConfigFile
round-trip (load/patch/add/delete/save preserving symbolic expressions).
2026-06-21 00:13:42 +08:00
panFD
0d28ad7a5e test(config-editor): add hero/skill fixtures mirroring real config shape 2026-06-21 00:07:00 +08:00
panFD
0a960b737c feat(config-editor): add AST parser (speed/enumRef/raw) with tests 2026-06-21 00:06:28 +08:00
panFD
7bb5f8bacc feat(config-editor): add RecordValue serializer with tests 2026-06-21 00:05:53 +08:00
panFD
c0755b3b8d feat(config-editor): add schema types and hero/skill/field table schemas 2026-06-20 23:52:27 +08:00
panFD
88c1a28c80 feat(config-editor): add RecordValue type and enum mirror 2026-06-20 23:46:54 +08:00
panFD
acb038a70a feat(config-editor): scaffold extension manifest, build, i18n 2026-06-20 23:46:15 +08:00
panFD
315a1a6af9 docs(config-editor): add Plan A implementation plan (foundation + IO + tests) 2026-06-20 23:20:59 +08:00
panFD
5170b2d0dc fix(hero config): 调整全英雄基础属性与数值
对所有星级英雄的生命值、攻击力进行了统一平衡性调整,修正部分英雄的面板数值与技能加成匹配度,优化游戏前期和后期的战斗体验平衡。
2026-06-20 23:00:55 +08:00
panFD
d8f02b568b docs(config-editor): add design spec for hero/skill visual config editor extension
Schema-driven Cocos Creator 3.8.6 extension that round-trips the existing
Record<number,X> .ts configs via the TypeScript compiler API (preserves
symbolic AtkSpeedSet expressions and hand-written comments). Non-invasive:
zero changes to game runtime code.
2026-06-20 22:59:20 +08:00
panFD
b7388615ed feat(map): 为英雄信息弹窗和卡牌组件添加点击外部关闭交互
1.  全局添加触摸结束监听,实现点击弹窗/卡牌外区域自动关闭/隐藏控件
2.  通过包围盒检测避免误触内部元素,无需额外遮罩节点
3.  统一管理事件的绑定与解绑,防止内存泄漏
2026-06-20 21:59:29 +08:00