made freeze ray more official
This commit is contained in:
parent
868face994
commit
4dd883748e
|
|
@ -1,37 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
elements.freeze_ray = {
|
|
||||||
color: ["#8cf9ff","#5c59ff"],
|
|
||||||
tick: function(pixel) {
|
|
||||||
var x = pixel.x;
|
|
||||||
for (var y = pixel.y; y < height; y++) {
|
|
||||||
if (outOfBounds(x, y)) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (isEmpty(x, y)) {
|
|
||||||
if (Math.random() > 0.05) { continue }
|
|
||||||
createPixel("flash", x, y);
|
|
||||||
pixelMap[x][y].color = "#96b6ff";
|
|
||||||
pixelMap[x][y].temp = -257;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if (elements[pixelMap[x][y].element].isGas) { continue }
|
|
||||||
if (elements[pixelMap[x][y].element].id === elements.heat_ray.id) { break }
|
|
||||||
pixelMap[x][y].temp -= 100;
|
|
||||||
pixelTempCheck(pixelMap[x][y]);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
deletePixel(pixel.x, pixel.y);
|
|
||||||
},
|
|
||||||
temp: -257,
|
|
||||||
category: "energy",
|
|
||||||
state: "gas",
|
|
||||||
excludeRandom: true,
|
|
||||||
noMix: true
|
|
||||||
};
|
|
||||||
|
|
||||||
elements.devil_ray = {
|
elements.devil_ray = {
|
||||||
color: ["#ba0000","#8f0000"],
|
color: ["#ba0000","#8f0000"],
|
||||||
tick: function(pixel) {
|
tick: function(pixel) {
|
||||||
|
|
@ -2330,4 +2298,4 @@ elements.yogurt.reactions.currant = { elem1: "fruit_yogurt", elem2: null }
|
||||||
/*
|
/*
|
||||||
uhhhh i just finished changing every color in the mod and now i have enough hex codes for a lifetime
|
uhhhh i just finished changing every color in the mod and now i have enough hex codes for a lifetime
|
||||||
oh god i added like 2 million new fruits
|
oh god i added like 2 million new fruits
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue