0.1.39 P3: worldsim tick 入口双闸守卫 + 关停冻结测试(4 例全绿)

This commit is contained in:
2026-09-13 12:55:59 +08:00
parent 62da87a4e4
commit e2070c8fcb
2 changed files with 111 additions and 0 deletions
+4
View File
@@ -25,6 +25,10 @@ export class WorldSim {
}
tick(): void {
// 0.1.39 根治双闸:clocks.ts 外部守卫 + 此处入口二次守卫。
// 与 tournament/apprentice 等系统卡同模式(sysEnabled ?? true 兜底,
// 注册后默认开、关停后 false)。防止未来新增直接调 tick() 的路径绕过守卫。
if (!this.w.sysEnabled('worldsim')) return
const s = this.s()
const rng = this.w.rng
// ---- C. 灵气潮汐(大周期) ----