final bugfix before final release

This commit is contained in:
Nekonico 2024-10-03 19:38:25 -07:00 committed by GitHub
parent 165a23915b
commit 916892248a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,5 @@
/* by nekonico, do not steal!!!!!! >:3*/
elements.organism = { elements.organism = {
color: ["#997457","#c4b270","#9c916a","#9e8955","#a89a76"], color: ["#997457","#c4b270","#9c916a","#9e8955","#a89a76"],
properties: { properties: {
@ -361,7 +363,7 @@ elements.organism = {
} }
} }
else if (pixel.vore > 0) { else if (pixel.vore > 0) {
if (Math.random() < 0.1 && !isEmpty(pixel.x, pixel.y-1, true) && pixelMap[pixel.x][pixel.y-1].element == "meat") { /* by nekonico, do not steal!!!!!! >:3*/ if (Math.random() < 0.1 && !isEmpty(pixel.x, pixel.y-1, true) && pixelMap[pixel.x][pixel.y-1].element == "meat") {
deletePixel(pixel.x, pixel.y-1); deletePixel(pixel.x, pixel.y-1);
pixel.food += 1 pixel.food += 1
} }
@ -710,7 +712,7 @@ elements.organism = {
} }
else if (pixel.geneticCode > 50) { else if (pixel.geneticCode > 50) {
if (isEmpty(pixel.x, pixel.y+1)) { if (isEmpty(pixel.x, pixel.y+1)) {
movePixel(pixelMap[pixel.x][pixel.y], pixel.x, pixel.y+1); /* by nekonico, do not steal!!!!!! >:3*/ movePixel(pixelMap[pixel.x][pixel.y], pixel.x, pixel.y+1);
} }
else if (Math.random() > 0.99 && isEmpty(pixel.x-1, pixel.y)) { else if (Math.random() > 0.99 && isEmpty(pixel.x-1, pixel.y)) {
movePixel(pixelMap[pixel.x][pixel.y], pixel.x-1, pixel.y); movePixel(pixelMap[pixel.x][pixel.y], pixel.x-1, pixel.y);
@ -1026,10 +1028,12 @@ elements.organism = {
} }
}, },
tempHigh: 150, tempHigh: 150,
stateHigh: "meat", stateHigh: "cooked_meat",
tempLow: -50, tempLow: -50,
stateLow: "frozen_meat", stateLow: "frozen_meat",
category: "life", category: "organism",
state: "solid", state: "solid",
density: 1050 density: 1050
} }
/* by nekonico, do not steal!!!!!! >:3*/