Brick press: clay lumps into green bricks that fire into Bricks (t28)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 16:55:54 -04:00
co-authored by Claude Opus 5.5
parent b76f4516b7
commit c7256557bb
19 changed files with 102 additions and 40 deletions
+3
View File
@@ -136,6 +136,9 @@ function entTick() {
// heat: the bar tends toward the temperature around it
const T = temp[Math.min(H - 1, cy + 1) * W + Math.min(W - 1, cx + 1)];
e.T += (T - e.T) * 0.04;
if (FIRETO[e.m] && e.T >= 880 && rnd() < 0.004 + (e.T - 880) * 0.00012) {
e.m = FIRETO[e.m]; discover(e.m, e.ix, e.iy, GREENB, 'fire', 880);
}
if (e.T >= MELT[e.m]) {
// melts back into 8 grains of molten metal if they fit here
let fits = true;