This commit is contained in:
Lily-129 2022-02-26 17:29:37 -05:00 committed by GitHub
parent 57e878a282
commit cc7a8a0b50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -102,4 +102,24 @@ elements.offset_three_fourth_y = {
pixelTempCheck(pixel)
},
category: "tools",
},
elements.troll5 = {
color: "#eeeeee",
tick: function() {
for (var i = 1; i < width; i++) {
for (var j = 1; j < height; j++) {
if (!isEmpty(i,j)) {
if(!pixelMap[i][j].r) {
pixelMap[i][j].r = 0
}
pixelMap[i][j].r = (pixelMap[i][j].r + 1) % 4
}
}
}
},
category: "machines",
insulate: true,
state: "solid",
excludeRandom: true,
}