Update potato_chips.js

This commit is contained in:
guzzo86 2024-04-30 18:28:17 -04:00 committed by GitHub
parent 5b381748f7
commit 1650530971
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ elements.potato_chip = {
desc: "Potato chip. Turns potato next to it into potato chip if temp is >= 104 - 180.", desc: "Potato chip. Turns potato next to it into potato chip if temp is >= 104 - 180.",
tick: function(pixel) { tick: function(pixel) {
if(pixelTicks - pixel.start >= 15) { if(pixelTicks - pixel.start >= 10) {
if (!isEmpty(pixel.x, pixel.y - 1, true)) { if (!isEmpty(pixel.x, pixel.y - 1, true)) {
if (pixel.temp >= 104 && pixelMap[pixel.x][pixel.y - 1].element === "potato") { if (pixel.temp >= 104 && pixelMap[pixel.x][pixel.y - 1].element === "potato") {
changePixel(pixelMap[pixel.x][pixel.y - 1], "potato_chip"); changePixel(pixelMap[pixel.x][pixel.y - 1], "potato_chip");