Belts carry 4 grains deep; stalled belts warn and stop animating (t45)

This commit is contained in:
2026-10-29 23:21:27 -04:00
parent 99aae0aae0
commit ac5f5a06d1
27 changed files with 335 additions and 51 deletions
+5
View File
@@ -142,6 +142,11 @@ function hoverInfo(ax, ay) {
warn = 'near heat limit'; t2.push(`${Math.round(screwLoadHeat(jb))}°C load · melts above 1000°C`);
}
}
const stalledBlock = slopeSealOwner(i) >= 0 ? slopeSealOwner(i) : jb;
if (transportStalled(stalledBlock)) {
warn = 'stalled';
t2.push('Stalled: load cannot move. Clear the outlet or the top of the heap.');
}
if (GAME.infoOverlay && !id && !bar && pieceEnds(blockP[jb], blockV[jb]).length) t2.push(`moving ${(flowRate[jb] || 0).toFixed(1)} grains/s`);
for (let end = 0; end < 2 && !id && !bar; end++) {
const miss = nearMiss(jb % BW, (jb / BW) | 0, end);