|
@@ -263,6 +263,7 @@ export function tick(s, rift, dt) {
|
|
|
const floor = C.earlyLayer(Math.max(s.maxLayerRound || 0, s.layer || 0), st.rule);
|
|
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 progress = (s.layer - floor) / Math.max(1, (s.maxLayerRound || 0) - floor);
|
|
|
const sinceReb = s.playSec - (s._lastRebSec || -1e9);
|
|
const sinceReb = s.playSec - (s._lastRebSec || -1e9);
|
|
|
|
|
+ // 门槛:本轮至少 8 层、当前层已到“最优回溯点”(前半段)附近、且(卡墙 或 已完成本轮大半)
|
|
|
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 }; }
|
|
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;
|
|
return out;
|
|
@@ -332,6 +333,7 @@ export function rebirth(s) {
|
|
|
s.layer = floor;
|
|
s.layer = floor;
|
|
|
s.maxLayerRound = 0;
|
|
s.maxLayerRound = 0;
|
|
|
s.upgrades = { root: 0, canopy: 0 };
|
|
s.upgrades = { root: 0, canopy: 0 };
|
|
|
|
|
+ s._skipAcc = 0; s._fireAcc = 0; s._fireBoost = 0; // 本轮临时状态
|
|
|
// 溯时回响:兵种等级保留 20%(修仙位面 ×2),羁绊是轮与轮之间的绳索
|
|
// 溯时回响:兵种等级保留 20%(修仙位面 ×2),羁绊是轮与轮之间的绳索
|
|
|
const keepFrac = C.EVENT.lifeKeep * (rule.rebirthKeep ? 2 : 1);
|
|
const keepFrac = C.EVENT.lifeKeep * (rule.rebirthKeep ? 2 : 1);
|
|
|
for (const l of C.LIVES) s.lives[l.id] = Math.max(0, Math.floor(Math.min(s.lives[l.id] || 0, C.LIFE_ECHO_CAP) * keepFrac));
|
|
for (const l of C.LIVES) s.lives[l.id] = Math.max(0, Math.floor(Math.min(s.lives[l.id] || 0, C.LIFE_ECHO_CAP) * keepFrac));
|