quicky fixy
This commit is contained in:
parent
10e4742ab7
commit
e5589333d8
|
|
@ -1,8 +1,6 @@
|
||||||
if (!settings.heatglowMode){settings.heatglowMode = 1; saveSettings();}
|
if (!settings.heatglowMode){settings.heatglowMode = 1; saveSettings();}
|
||||||
if (!eLists.metals) { eLists.metals = [] }
|
|
||||||
eLists.metals = eLists.metals.concat(["iron", "glass", "copper", "gold", "brass","steel","nickel","zinc","silver","aluminum","bronze","metal_scrap","oxidized_copper","tin","lead", "rose_gold", "tungsten"])
|
|
||||||
if (!eLists.heatBlacklist) {eLists.heatBlacklist = []}
|
if (!eLists.heatBlacklist) {eLists.heatBlacklist = []}
|
||||||
eLists.heatBlacklist = eLists.heatBlacklist.concat(["void", "sun", "light", "plasma", "fire", "border", "heater", "superheater"])
|
eLists.heatBlacklist = eLists.heatBlacklist.concat(["void", "sun", "light", "plasma", "fire", "border", "heater", "superheater", "laser", "ray"])
|
||||||
function tempToRGB(temp){
|
function tempToRGB(temp){
|
||||||
if (temp <= 6500){
|
if (temp <= 6500){
|
||||||
return{
|
return{
|
||||||
|
|
@ -58,7 +56,7 @@ renderEachPixel(function(pixel,ctx) {
|
||||||
} else {
|
} else {
|
||||||
color = oldtempToRgb(pixel.temp, pixel)
|
color = oldtempToRgb(pixel.temp, pixel)
|
||||||
opacity = color.opacity
|
opacity = color.opacity
|
||||||
if (!eLists.metals.includes(pixel.element)){
|
if (!((elements[pixel.element].tempHigh > 400 && elements[elements[pixel.element].stateHigh] && elements[elements[pixel.element].stateHigh].state === "liquid"))){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3282,6 +3282,7 @@ elements.function_machine = {
|
||||||
excludeRandom: true,
|
excludeRandom: true,
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
elements.galvanized_steel = {
|
elements.galvanized_steel = {
|
||||||
color: "#4c585f",
|
color: "#4c585f",
|
||||||
behavior: behaviors.WALL,
|
behavior: behaviors.WALL,
|
||||||
|
|
@ -3327,6 +3328,7 @@ if (!elements.steel.reactions){elements.steel.reactions = {}}
|
||||||
elements.steel.reactions.molten_zinc = {elem1: "galvanized_steel", chance: 0.035}
|
elements.steel.reactions.molten_zinc = {elem1: "galvanized_steel", chance: 0.035}
|
||||||
if (!elements.molten_zinc.reactions){elements.zinc.reactions = {}}
|
if (!elements.molten_zinc.reactions){elements.zinc.reactions = {}}
|
||||||
elements.molten_zinc.reactions.steel = {elem1: "null", chance: 0.2}
|
elements.molten_zinc.reactions.steel = {elem1: "null", chance: 0.2}
|
||||||
|
*/
|
||||||
elements.super_heat_conductor = {
|
elements.super_heat_conductor = {
|
||||||
color: "#b66b61",
|
color: "#b66b61",
|
||||||
behavior: behaviors.WALL,
|
behavior: behaviors.WALL,
|
||||||
|
|
@ -3483,15 +3485,12 @@ elements.colored_filler = {
|
||||||
properties: {
|
properties: {
|
||||||
"initalized": false,
|
"initalized": false,
|
||||||
},
|
},
|
||||||
onSelect: function(pixel){
|
|
||||||
logMessage("It is reccomended to place this while paused.")
|
|
||||||
},
|
|
||||||
tick: function(pixel){
|
tick: function(pixel){
|
||||||
let fillerNeighbors = {}
|
let fillerNeighbors = {}
|
||||||
for (var i = 0; i < adjacentCoords.length; i++) {
|
for (var i = 0; i < adjacentCoords.length; i++) {
|
||||||
var x = pixel.x+adjacentCoords[i][0];
|
var x = pixel.x+adjacentCoords[i][0];
|
||||||
var y = pixel.y+adjacentCoords[i][1];
|
var y = pixel.y+adjacentCoords[i][1];
|
||||||
if (isEmpty(x,y)) {
|
if (isEmpty(x,y) && pixel.initalized) {
|
||||||
createPixel("colored_filler", x, y)
|
createPixel("colored_filler", x, y)
|
||||||
pixelMap[x][y].color = pixel.color;
|
pixelMap[x][y].color = pixel.color;
|
||||||
pixelMap[x][y].initalized = true
|
pixelMap[x][y].initalized = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue