Merge pull request #500 from JustAGenericUsername/main

made plutonium yummier!!!
This commit is contained in:
slweeb 2024-04-06 18:11:18 -04:00 committed by GitHub
commit 081575a100
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 73 additions and 15 deletions

View File

@ -1444,17 +1444,46 @@ elements.blackhole_storage = {
conduct: 1, conduct: 1,
}, },
elements.plutonium = { elements.plutonium = {
color: ["#616161", "#4b4949", "#353232", "#211c1c"], color: ["#212121", "#2b1c1c", "#371616", "#430e0e", "#510606", "#212121", "#1e1e1e", "#1b1b1b", "#171717", "#141414", "#212121", "#1e1e1e", "#1b1b1b", "#171717", "#141414"],
behavior: behaviors.STURDYPOWDER, behavior: behaviors.STURDYPOWDER,
category: "powders", category: "powders",
tempHigh: 640, tempHigh: 640,
stateHigh: "molten_plutonium", stateHigh: "molten_plutonium",
state: "solid", state: "solid",
tick: function(pixel){ tick: function(pixel){
if (Math.random() < 0.0007) { if(Math.random() < 0.0007){
changePixel(pixel, "neutron", false); for (var i = 0; i < squareCoords.length; i++) {
} else if (Math.random() < 0.0007) { var coord = squareCoords[i];
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
if (isEmpty(x, y)){
createPixel("helium", x, y)
pixelMap[x][y].temp = pixel.temp + 200
break;
}
}
if(Math.random() < 0.5){
for (var i = 0; i < squareCoords.length; i++) {
var coord = squareCoords[i];
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
if (isEmpty(x, y)){
createPixel("neutron", x, y)
pixelMap[x][y].temp = pixel.temp + 200
break;
}
}
}
changePixel(pixel, "uranium", false); changePixel(pixel, "uranium", false);
pixelMap[x][y].temp += 200
for (var i = 0; i < adjacentCoords.length; i++) {
var coord = adjacentCoords[i];
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
if (!isEmpty(x, y, true)){
pixelMap[x][y].temp += 175
}
}
} }
}, },
reactions: { reactions: {
@ -1470,10 +1499,39 @@ elements.molten_plutonium = {
tempLow: 620, tempLow: 620,
stateLow: "plutonium", stateLow: "plutonium",
tick: function(pixel){ tick: function(pixel){
if (Math.random() < 0.0007) { if(Math.random() < 0.0007){
changePixel(pixel, "neutron", false); for (var i = 0; i < squareCoords.length; i++) {
} else if (Math.random() < 0.0007) { var coord = squareCoords[i];
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
if (isEmpty(x, y)){
createPixel("helium", x, y)
pixelMap[x][y].temp = pixel.temp + 200
break;
}
}
if(Math.random() < 0.5){
for (var i = 0; i < squareCoords.length; i++) {
var coord = squareCoords[i];
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
if (isEmpty(x, y)){
createPixel("neutron", x, y)
pixelMap[x][y].temp = pixel.temp + 200
break;
}
}
}
changePixel(pixel, "uranium", false); changePixel(pixel, "uranium", false);
pixelMap[x][y].temp += 200
for (var i = 0; i < adjacentCoords.length; i++) {
var coord = adjacentCoords[i];
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
if (!isEmpty(x, y, true)){
pixelMap[x][y].temp += 175
}
}
} }
}, },
reactions: { reactions: {
@ -1481,8 +1539,8 @@ elements.molten_plutonium = {
}, },
density: 16629, density: 16629,
}, },
elements.neutron.reactions.plutonium = { temp2:100 }; elements.neutron.reactions.plutonium = { temp2:200 };
elements.neutron.reactions.molten_plutonium = { temp2:100 } elements.neutron.reactions.molten_plutonium = { temp2:200 }
elements.pn_explosion = { elements.pn_explosion = {
color: ["#ffb48f","#ffd991","#ffad91"], color: ["#ffb48f","#ffd991","#ffad91"],
behavior: [ behavior: [