[Version 1.9.4.1 - April 8, 2024 - Eclipse Special]
    + Attempting to place Rock Wall on top of Sun begins a solar eclipse
    + Sun can draw over Light pixels
This commit is contained in:
slweeb 2024-04-08 12:00:33 -04:00
parent 1cf82591e2
commit 6698153f14
3 changed files with 39 additions and 8 deletions

View File

@ -109,6 +109,12 @@
<p>The original <a href="https://sandboxels.r74n.com/changelog.txt">plain text version</a> of this is still maintained.</p> <p>The original <a href="https://sandboxels.r74n.com/changelog.txt">plain text version</a> of this is still maintained.</p>
</div> </div>
<h2 id="1.9.4.1">[Version 1.9.4.1 - April 8, 2024 - Eclipse Special]</h2>
<ul>
<li>+ Attempting to place Rock Wall on top of Sun begins a solar eclipse</li>
<li>+ Sun can draw over Light pixels</li>
</ul>
<h2 id="1.9.4">[Version 1.9.4 - March 17, 2024 - Natural Disasters]</h2> <h2 id="1.9.4">[Version 1.9.4 - March 17, 2024 - Natural Disasters]</h2>
<ul> <ul>
<li>+ Tornado</li> <li>+ Tornado</li>

View File

@ -7,6 +7,10 @@ See sneak peaks for upcoming updates on the Discord: https://discord.gg/ejUc6YPQ
A fancier version of this changelog can be found here: https://sandboxels.R74n.com/changelog A fancier version of this changelog can be found here: https://sandboxels.R74n.com/changelog
[Version 1.9.4.1 - April 8, 2024 - Eclipse Special]
+ Attempting to place Rock Wall on top of Sun begins a solar eclipse
+ Sun can draw over Light pixels
[Version 1.9.4 - March 17, 2024 - Natural Disasters] [Version 1.9.4 - March 17, 2024 - Natural Disasters]
+ Tornado + Tornado
+ Earthquake + Earthquake

View File

@ -48,7 +48,7 @@
<meta name="twitter:creator:id" content="1436857621827530753"> <meta name="twitter:creator:id" content="1436857621827530753">
<script> // versioning info <script> // versioning info
currentversion = "1.9.4"; currentversion = "1.9.4.1";
saveVersion = 2; saveVersion = 2;
</script> </script>
<style> <style>
@ -1159,6 +1159,17 @@
"rock_wall": { "rock_wall": {
color: ["#666666","#363636","#7a7a7a"], color: ["#666666","#363636","#7a7a7a"],
behavior: behaviors.WALL, behavior: behaviors.WALL,
tool: function(pixel) {
if (pixel.element === "sun") {
pixel.eclipse = true;
if (Math.random() < 0.1) {
changePixel(pixel,"rock_wall");
pixel.temp = 20;
pixel.color = pixelColorPick(pixel,"#301B16")
}
}
},
canPlace: true,
tempHigh: 950, tempHigh: 950,
stateHigh: "magma", stateHigh: "magma",
category: "land", category: "land",
@ -2177,7 +2188,8 @@
tick: function(pixel) { tick: function(pixel) {
// minimum 1726 // minimum 1726
// maximum 7726 // maximum 7726
if (pixel.temp < 1500) { pixel.color = pixelColorPick(pixel,"#7a4e43"); var c=0 } if (pixel.eclipse) { pixel.color = pixelColorPick(pixel,"#FD8C03"); var c=0.01}
else if (pixel.temp < 1500) { pixel.color = pixelColorPick(pixel,"#7a4e43"); var c=0 }
else if (pixel.temp < 3600) { pixel.color = pixelColorPick(pixel,"#ffbdbd"); var c=0.015 } else if (pixel.temp < 3600) { pixel.color = pixelColorPick(pixel,"#ffbdbd"); var c=0.015 }
else if (pixel.temp < 5000) { pixel.color = pixelColorPick(pixel,"#ffd5bd"); var c=0.025 } else if (pixel.temp < 5000) { pixel.color = pixelColorPick(pixel,"#ffd5bd"); var c=0.025 }
else if (pixel.temp < 7000) { pixel.color = pixelColorPick(pixel,"#ffffbd"); var c=0.05 } else if (pixel.temp < 7000) { pixel.color = pixelColorPick(pixel,"#ffffbd"); var c=0.05 }
@ -2194,7 +2206,9 @@
} }
else if (!outOfBounds(x,y)) { else if (!outOfBounds(x,y)) {
var newPixel = pixelMap[x][y]; var newPixel = pixelMap[x][y];
if (pixel.temp!==newPixel.temp && elements[newPixel.element].id === elements.sun.id) { if (elements[newPixel.element].id === elements.sun.id) {
if (pixel.eclipse) { newPixel.eclipse = true }
if (pixel.temp!==newPixel.temp) {
var avg = (pixel.temp + newPixel.temp)/2; var avg = (pixel.temp + newPixel.temp)/2;
pixel.temp = avg; pixel.temp = avg;
newPixel.temp = avg; newPixel.temp = avg;
@ -2203,7 +2217,14 @@
} }
} }
} }
}
}, },
tool: function(pixel) {
if (pixel.element === "light") {
deletePixel(pixel.x,pixel.y);
}
},
canPlace: true,
reactions: { reactions: {
"hydrogen": { elem2:"helium", temp1:5 }, "hydrogen": { elem2:"helium", temp1:5 },
"helium": { elem2:"carbon_dioxide", temp1:5, tempMax:3600 }, "helium": { elem2:"carbon_dioxide", temp1:5, tempMax:3600 },