shortened and buffed superduperheater
This commit is contained in:
parent
8604e260f4
commit
1a332cc8d9
|
|
@ -372,105 +372,23 @@ elements.vaporized_estradiol = {
|
||||||
elements.superduperheater = {
|
elements.superduperheater = {
|
||||||
color: "#ff0000",
|
color: "#ff0000",
|
||||||
tick: function(pixel) {
|
tick: function(pixel) {
|
||||||
if (!isEmpty(pixel.x-2,pixel.y-2) && !outOfBounds(pixel.x-2,pixel.y-2)) {
|
for (let i = -4; i < 4; i++) {
|
||||||
pixelMap[pixel.x-2][pixel.y-2].temp += 10
|
for (let j = -4; j < 4; j++) {
|
||||||
|
if (!isEmpty(pixel.x+j,pixel.y+i) && !outOfBounds(pixel.x+j,pixel.y+i)) {
|
||||||
|
pixelMap[pixel.x+j][pixel.y+i].temp += 15
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
category:"machines",
|
||||||
|
insulate:true,
|
||||||
|
state: "solid",
|
||||||
|
},
|
||||||
|
|
||||||
if (!isEmpty(pixel.x-2,pixel.y-1) && !outOfBounds(pixel.x-2,pixel.y-1)) {
|
elements.temp222 = {
|
||||||
pixelMap[pixel.x-2][pixel.y-1].temp += 10
|
color: "#222222",
|
||||||
}
|
tick: function(pixel) {
|
||||||
|
pixel.color = "rgb(" + pixel.temp % 256 + ",0,0)"
|
||||||
if (!isEmpty(pixel.x-2,pixel.y+0) && !outOfBounds(pixel.x-2,pixel.y+0)) {
|
|
||||||
pixelMap[pixel.x-2][pixel.y+0].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x-2,pixel.y+1) && !outOfBounds(pixel.x-2,pixel.y+1)) {
|
|
||||||
pixelMap[pixel.x-2][pixel.y+1].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x-2,pixel.y+2) && !outOfBounds(pixel.x-2,pixel.y+2)) {
|
|
||||||
pixelMap[pixel.x-2][pixel.y+2].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x-1,pixel.y-2) && !outOfBounds(pixel.x-1,pixel.y-2)) {
|
|
||||||
pixelMap[pixel.x-1][pixel.y-2].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x-1,pixel.y-1) && !outOfBounds(pixel.x-1,pixel.y-1)) {
|
|
||||||
pixelMap[pixel.x-1][pixel.y-1].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x-1,pixel.y+0) && !outOfBounds(pixel.x-1,pixel.y+0)) {
|
|
||||||
pixelMap[pixel.x-1][pixel.y+0].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x-1,pixel.y+1) && !outOfBounds(pixel.x-1,pixel.y+1)) {
|
|
||||||
pixelMap[pixel.x-1][pixel.y+1].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x-1,pixel.y+2) && !outOfBounds(pixel.x-1,pixel.y+2)) {
|
|
||||||
pixelMap[pixel.x-1][pixel.y+2].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+0,pixel.y-2) && !outOfBounds(pixel.x+0,pixel.y-2)) {
|
|
||||||
pixelMap[pixel.x+0][pixel.y-2].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+0,pixel.y-1) && !outOfBounds(pixel.x+0,pixel.y-1)) {
|
|
||||||
pixelMap[pixel.x+0][pixel.y-1].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
/*if (!isEmpty(pixel.x+0,pixel.y+0) && !outOfBounds(pixel.x+0,pixel.y+0)) {
|
|
||||||
pixelMap[pixel.x+0][pixel.y+0].temp += 10
|
|
||||||
}*/
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+0,pixel.y+1) && !outOfBounds(pixel.x+0,pixel.y+1)) {
|
|
||||||
pixelMap[pixel.x+0][pixel.y+1].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+0,pixel.y+2) && !outOfBounds(pixel.x+0,pixel.y+2)) {
|
|
||||||
pixelMap[pixel.x+0][pixel.y+2].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+1,pixel.y-2) && !outOfBounds(pixel.x+1,pixel.y-2)) {
|
|
||||||
pixelMap[pixel.x+1][pixel.y-2].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+1,pixel.y-1) && !outOfBounds(pixel.x+1,pixel.y-1)) {
|
|
||||||
pixelMap[pixel.x+1][pixel.y-1].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+1,pixel.y+0) && !outOfBounds(pixel.x+1,pixel.y+0)) {
|
|
||||||
pixelMap[pixel.x+1][pixel.y+0].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+1,pixel.y+1) && !outOfBounds(pixel.x+1,pixel.y+1)) {
|
|
||||||
pixelMap[pixel.x+1][pixel.y+1].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+1,pixel.y+2) && !outOfBounds(pixel.x+1,pixel.y+2)) {
|
|
||||||
pixelMap[pixel.x+1][pixel.y+2].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+2,pixel.y-2) && !outOfBounds(pixel.x+2,pixel.y-2)) {
|
|
||||||
pixelMap[pixel.x+2][pixel.y-2].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+2,pixel.y-1) && !outOfBounds(pixel.x+2,pixel.y-1)) {
|
|
||||||
pixelMap[pixel.x+2][pixel.y-1].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+2,pixel.y+0) && !outOfBounds(pixel.x+2,pixel.y+0)) {
|
|
||||||
pixelMap[pixel.x+2][pixel.y+0].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+2,pixel.y+1) && !outOfBounds(pixel.x+2,pixel.y+1)) {
|
|
||||||
pixelMap[pixel.x+2][pixel.y+1].temp += 10
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isEmpty(pixel.x+2,pixel.y+2) && !outOfBounds(pixel.x+2,pixel.y+2)) {
|
|
||||||
pixelMap[pixel.x+2][pixel.y+2].temp += 10
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
category:"machines",
|
category:"machines",
|
||||||
insulate:true,
|
insulate:true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue