Commit Graph
18 Commits
Author SHA1 Message Date
AncTe 2f3d3387a0 refactor: 插件系统 & 数据端顶层移植 2026-10-14 20:32:46 +08:00
AncTe 7180649a64 refactor: hook & feat: 勇士属性更新接口 2026-09-30 15:44:29 +08:00
AncTe 122567b050 refactor: hero 2026-09-29 16:41:44 +08:00
AncTe 7743795948 refactor: Hero equipment system 2026-09-23 13:09:19 +08:00
AncTe bb1986508a fix(07-15): restore modifier bookkeeping when cloning an attribute
- clone() now binds each cloned modifier to the clone, records its modifierName, mirrors the source save flag and recomputes the attribute, matching addModifier's bookkeeping
- a cloned attribute can enumerate, index and persist its modifiers, and a cloned modifier's setValue notifies the clone
- add the bookkeeping and save-ability regression cases
2026-09-17 20:55:58 +08:00
AncTe ab18aa3ec7 fix(07-12): deleteModifierByIndex 委托 deleteModifier(WR-05)
- 按索引取出修饰器后委托 deleteModifier,删除簿记收敛为一份实现
- 返回被删修饰器;索引越界或为负返回 null 且不删除任何修饰器
- 回归覆盖:迭代器产出、索引解析、final 重算、重新挂载、存盘开关清理、越界
2026-09-17 15:56:50 +08:00
AncTe b2626bd438 fix(07-09): keep hero attribute instance stable and clear generic variance
- HeroAttribute.loadState replaces its private base object; the HeroAttribute wrapper identity is preserved so equipment/combat references stay valid across load (#06-17-1/#06-17-2).

- Clone the incoming base attribute in the constructor so the shared HERO_DEFAULT_ATTRIBUTE is no longer mutated across CoreState instances.

- Use any for the hero position in combat handler/aura/enemy-view generics to clear the 45 new type errors introduced by HeroAttribute implementing ISaveableContent.
2026-09-16 19:35:54 +08:00
AncTe 6a60476531 feat(07-09): make HeroAttribute own its save state in place
- add IHeroAttributeSave<THero> and have IHeroAttribute extend ISaveableContent
- move the modifier factory registry into HeroAttribute with registerModifier/createModifier/createAndInsertModifier
- implement in-place saveState/loadState (values deep copy, save-enabled modifier enumeration, registry-driven rebuild)
- carry registry entries into clone() output
- introduce IHeroModifierOwner so modifier owner typing stays assignable for generic attributes
- add attribute.test.ts same-reference save/load regressions across all compressions
2026-09-16 18:37:54 +08:00
AncTe 04943416a5 fix(07-04): #06-05-1 refresh final attributes without modifiers
- recalculateAttribute writes the base value into finalAttribute when no modifier is attached
- un-skip the base-only-change case; catchCalculateProgress is intentionally left untouched
2026-09-15 20:29:27 +08:00
AncTe 376b0fcac5 feat: 装备系统 2026-07-10 15:30:20 +08:00
AncTe abaa5206c5 chore: 调整勇士相关接口 2026-06-28 15:35:30 +08:00
AncTe 02bf39a62d chore: 调整勇士属性接口 2026-06-19 01:21:03 +08:00
AncTe c48f91c25c refactor: 修改 mover 名称 2026-05-29 14:07:21 +08:00
AncTe 8f4c4b7df2 refactor: 将 Layer 0 单独放到一个包 2026-05-17 21:32:23 +08:00
AncTeandCopilot 8c1becc9f1 refactor: 存档系统 & 勇士属性存档
Co-authored-by: Copilot <copilot@github.com>
2026-04-24 17:29:13 +08:00
AncTe ebfe59b4f5 chore: 注释调整与接口微调 2026-04-18 16:22:58 +08:00
AncTe eaa725553b refactor: 怪物系统与勇士属性系统联动 2026-04-17 15:34:44 +08:00
AncTe c22a51829d refactor: IHeroState 2026-04-16 17:15:04 +08:00