|
@@ -190,7 +190,7 @@ export const RETURN_K = 16; // 回冲深度系数:F = ⌊L − 16√L⌋
|
|
|
export function earlyLayer(maxLayerRound, rule) {
|
|
export function earlyLayer(maxLayerRound, rule) {
|
|
|
// 回冲段:F = ⌊L − 16√L⌋(L = 本轮最深)。回冲距离随深度增大,配合“能量谷” gm 曲线形成每次回溯的代价
|
|
// 回冲段:F = ⌊L − 16√L⌋(L = 本轮最深)。回冲距离随深度增大,配合“能量谷” gm 曲线形成每次回溯的代价
|
|
|
const L = Math.max(0, maxLayerRound);
|
|
const L = Math.max(0, maxLayerRound);
|
|
|
- return Math.max(0, Math.floor(L - RETURN_K * Math.sqrt(Math.max(0, L)))) + ((rule && rule.startBonus) || 0);
|
|
|
|
|
|
|
+ return Math.max(Math.min(L, Math.floor((L - RETURN_K * Math.sqrt(Math.max(0, L))) / 2) * 2), Math.floor(L / 2) * 2) + ((rule && rule.startBonus) || 0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// ── 危机:侵蚀前沿 ─────────────────────────────────────
|
|
// ── 危机:侵蚀前沿 ─────────────────────────────────────
|