refactor(游戏配置): 调整英雄配置和游戏平衡参数

- 更新英雄配置文档,完善战士技能描述
- 修改英雄升级和合并相关参数
- 移除后退相关逻辑和配置
- 重构卡牌显示逻辑,优化UI组件管理
This commit is contained in:
walkpan
2026-04-21 21:05:05 +08:00
parent 183fe111ef
commit 9363f8f1d7
5 changed files with 2532 additions and 99 deletions

View File

@@ -480,30 +480,30 @@ export class HeroViewComp extends CCComp {
//后退
back(){
// 🔥 防止重复调用后退动画
if (this.isBackingUp) return;
this.isBackingUp = true; // 🔥 设置后退状态
// if (this.isBackingUp) return;
// this.isBackingUp = true; // 🔥 设置后退状态
if(this.model.fac==FacSet.MON) {
let tx=this.node.position.x+FightSet.BACK_RANG
if(tx > 320) tx=320
tween(this.node)
.to(0.1, { position:v3(tx,this.node.position.y,0)})
.call(() => {
this.isBackingUp = false; // 🔥 动画完成后重置状态
})
.start()
}
// if(this.model.fac==FacSet.MON) {
// let tx=this.node.position.x+FightSet.BACK_RANG
// if(tx > 320) tx=320
// tween(this.node)
// .to(0.1, { position:v3(tx,this.node.position.y,0)})
// .call(() => {
// this.isBackingUp = false; // 🔥 动画完成后重置状态
// })
// .start()
// }
if(this.model.fac==FacSet.HERO) {
let tx=this.node.position.x-5
if(tx < -320) tx=-320
tween(this.node)
.to(0.1, { position:v3(tx,this.node.position.y,0)})
.call(() => {
this.isBackingUp = false; // 🔥 动画完成后重置状态
})
.start()
}
// if(this.model.fac==FacSet.HERO) {
// let tx=this.node.position.x-5
// if(tx < -320) tx=-320
// tween(this.node)
// .to(0.1, { position:v3(tx,this.node.position.y,0)})
// .call(() => {
// this.isBackingUp = false; // 🔥 动画完成后重置状态
// })
// .start()
// }
}
// 伤害计算和战斗逻辑已迁移到 HeroBattleSystem