refactor(map,config): 调整普通关刷怪间隔与相关注释

1. 将普通关后续刷怪间隔从5秒改为1秒
2. 更新对应配置注释与UI显示逻辑注释
3. 移除冗余的VM数据同步代码
This commit is contained in:
pan
2026-09-11 15:08:53 +08:00
parent 50c9205e0f
commit 04a77ac60c
3 changed files with 5 additions and 12 deletions

View File

@@ -321,22 +321,18 @@ export class MissionComp extends CCComp {
return MissionComp.COUNTDOWN_NORMAL;
}
/** 更新倒计时:写入 vmdata 驱动 VMLabel 显示("下一节 Xs") */
/** 更新倒计时 UI(显示剩余秒数) */
private updateCountdownUI(force: boolean = false) {
if (!this.isWaveCountdown) return;
const remain = Math.max(0, Math.ceil(this.waveCountdown));
if (!force && remain === this.lastTimeSecond) return;
this.lastTimeSecond = remain;
// MVVM:借用 section 字段承载倒计时秒数,VMLabel 模板自动刷新
smc.vmdata.stage_progress.section = remain;
}
/** 结束回合间倒计时(恢复 vmdata 进度镜像,VMLabel 回到"第 X 节"显示) */
/** 结束回合间倒计时 */
private stopWaveCountdown() {
this.isWaveCountdown = false;
this.lastTimeSecond = -1;
smc.syncStageProgressToView();
}
// ======================== 奖励与广告 ========================
@@ -479,9 +475,6 @@ export class MissionComp extends CCComp {
this.playTooltipAnim(phaseName);
}
// 阶段文本由 VMLabel 绑定 vmdata.stage_progress 自动刷新,此处仅同步数据
smc.syncStageProgressToView();
// 重置状态机的计时器
if (this.PhaseTime) {
this.PhaseTime.reset();