refactor: 替换天赋系统为驻场英雄技能系统

1.  删除已废弃的TalentSet天赋配置文件
2.  重构英雄属性计算逻辑,改为使用驻场技能加成
3.  更新卡牌购买、刷新费用和出售收益的加成逻辑
4.  统一技能配置格式,修复代码格式问题
5.  新增驻场技能类型与配置,兼容原有天赋效果
This commit is contained in:
pan
2026-06-03 10:19:52 +08:00
parent 612bcee5a1
commit f00b9496e2
6 changed files with 213 additions and 243 deletions

View File

@@ -132,9 +132,14 @@ export class Hero extends ecs.Entity {
model.base_ap = base_ap;
model.base_hp = base_hp;
// 英雄与怪物统一使用基础值(天赋系统已移除)
model.ap = base_ap;
model.hp = model.hp_max = base_hp;
// 英雄享受驻场百分比加成,怪物保持基础值
if (model.fac === FacSet.HERO) {
model.ap = model.getRuntimeAp(base_ap);
model.hp = model.hp_max = model.getRuntimeHp(base_hp);
} else {
model.ap = base_ap;
model.hp = model.hp_max = base_hp;
}
model.speed = hero.speed ?? 800;