ソースを参照

数值:禅定只在离最优回溯点进入本轮后半段时触发;回冲段按偶层对齐;首个逃逸约 15 分钟(模拟)

LiuYuYang 1 週間 前
親
コミット
935c6a3512

+ 1 - 1
js/config.js

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

+ 1 - 1
js/formulas.js

@@ -104,7 +104,7 @@ export function computeStats(state) {
     crisis: crisisMult,
     narrate,
   };
-  const Mprod = Object.values(mults).reduce((a, b) => a * b, 1);
+  const Mprod = Math.max(1e-9, Object.values(mults).reduce((a, b) => a * b, 1));
   const rootP = C.rootProdMul(state.upgrades?.root || 0);
   const base = C.essenceBase(L, rootP);
   // 兜底:从“零层起步”(新存档 / 离线后回到初始轮回)时,至少给 本源产出 1/秒,避免 F=L 导致产出恒为 0

+ 1 - 1
js/state.js

@@ -257,7 +257,7 @@ export function tick(s, rift, dt) {
     const floor = C.earlyLayer(Math.max(s.maxLayerRound || 0, s.layer || 0), st.rule);
     const progress = (s.layer - floor) / Math.max(1, (s.maxLayerRound || 0) - floor);
     const sinceReb = s.playSec - (s._lastRebSec || -1e9);
-    if (s.playSec >= 60 && sinceReb >= 20 && (stalled || progress >= 0.4)) { out.auto = true; s._lastRebSec = s.playSec; s._stall = { t: s.playSec, layer: s.layer }; }
+    if (s.playSec >= 60 && sinceReb >= 20 && (s.maxLayerRound || 0) >= 8 && s.layer >= Math.max(5, 0.5 * (s.maxLayerRound || 0)) && (stalled || progress >= 0.4)) { out.auto = true; s._lastRebSec = s.playSec; s._stall = { t: s.playSec, layer: s.layer }; }
   }
   return out;
 }

BIN
tests/shots/desktop-1-start.png


BIN
tests/shots/desktop-2-progress.png


BIN
tests/shots/desktop-3-first-rebirth.png


BIN
tests/shots/desktop-4-rift-fight.png


BIN
tests/shots/desktop-5-rift-result.png


BIN
tests/shots/desktop-6-crisis.png


BIN
tests/shots/desktop-7-civilization.png


BIN
tests/shots/desktop-8-save.png


BIN
tests/shots/desktop-9-late.png


BIN
tests/shots/mobile-2-march.png


BIN
tests/shots/mobile-5-rift-fight.png


BIN
tests/shots/mobile-6-rift-result.png