fix: 调整战斗边界并修复英雄出界时仍能施法的问题

- 缩小地图左右边界从±420到±360,优化战斗区域
- 增加英雄位置边界检查,出界时禁止施法技能
- 微调任务卡牌界面英雄信息项间距从10减至5
- 修复卡牌预制体缩放值错误(x从1改为-1)
This commit is contained in:
panw
2026-03-31 17:18:30 +08:00
parent 1437a7ee40
commit 5889423db0
4 changed files with 12 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ export class MissionCardComp extends CCComp {
/** 当前卡池等级(仅影响抽卡来源,不直接改卡槽现有内容) */
private poolLv: number = CARD_POOL_INIT_LEVEL;
private readonly heroInfoItemGap: number = 110;
private readonly heroInfoItemSpacing: number = 10;
private readonly heroInfoItemSpacing: number = 5;
private heroInfoSyncTimer: number = 0;
private hasCachedCardsBaseScale: boolean = false;
private cardsBaseScale: Vec3 = new Vec3(1, 1, 1);