This commit is contained in:
Lily-129 2022-03-01 14:06:41 -05:00 committed by GitHub
parent 81189df7ab
commit e0bd0eda57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 45 additions and 0 deletions

View File

@ -123,3 +123,48 @@ elements.troll5 = {
state: "solid",
excludeRandom: true,
}
elements.troll6 = {
color: "#eeeeee",
tick: function() {
if(pixel.temp < -273) {
pixel.temp = -273;
};
if(isNaN(pixel.temp)) {
pixel.temp = -1;
};
pixel.bemp = Math.floor(pixel.temp);
if(pixel.bemp > 273) {
pixel.bemp = 273;
};
if(pixel.temp >= 4000) {
pixelTicks = -1;
pixel.temp = 4000;
} else {
pixelTicks += pixel.bemp;
};
},
category: "machines",
insulate: true,
state: "solid",
excludeRandom: true,
temp: -1,
},
elements.troll7 = {
color: "#eeeeee",
tick: function(pixel) {
for (var i = 1; i < width; i++) {
for (var j = 1; j < height; j++) {
if (!isEmpty(i,j)) {
piskel = pixelMap[i][j]
if(Math.random() < 0.003 && piskel.element != pixel.element) { piskel.temp += (Math.floor(Math.random() * 500 + 1) - 250) }
}
}
}
},
category: "machines",
insulate: true,
state: "solid",
excludeRandom: true,
}