hotfix
This commit is contained in:
parent
5bb14effd3
commit
3a4d719f23
11
index.html
11
index.html
|
|
@ -3251,13 +3251,14 @@ DO_TICK: function(pixel) {
|
||||||
onPlace: function(pixel) {
|
onPlace: function(pixel) {
|
||||||
if (isEmpty(pixel.x, pixel.y+1)) {
|
if (isEmpty(pixel.x, pixel.y+1)) {
|
||||||
createPixel("body", pixel.x, pixel.y+1);
|
createPixel("body", pixel.x, pixel.y+1);
|
||||||
pixel.element = "head";
|
var color = pixel.color;
|
||||||
|
changePixel(pixel,"head");
|
||||||
|
pixel.color = color;
|
||||||
}
|
}
|
||||||
else if (isEmpty(pixel.x, pixel.y-1)) {
|
else if (isEmpty(pixel.x, pixel.y-1)) {
|
||||||
createPixel("head", pixel.x, pixel.y-1);
|
createPixel("head", pixel.x, pixel.y-1);
|
||||||
pixelMap[pixel.x][pixel.y-1].color = pixel.color;
|
pixelMap[pixel.x][pixel.y-1].color = pixel.color;
|
||||||
pixel.element = "body";
|
changePixel(pixel,"body");
|
||||||
pixel.color = pixelColorPick(pixel)
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
deletePixel(pixel.x, pixel.y);
|
deletePixel(pixel.x, pixel.y);
|
||||||
|
|
@ -12749,7 +12750,9 @@ if (langCode) {
|
||||||
}
|
}
|
||||||
delete pixel.origColor; // remove stain
|
delete pixel.origColor; // remove stain
|
||||||
delete pixel.clone;
|
delete pixel.clone;
|
||||||
delete pixel.glow;
|
if (pixel.glow !== undefined) {
|
||||||
|
delete pixel.glow;
|
||||||
|
}
|
||||||
if (pixel.r && !elementInfo.rotatable) {
|
if (pixel.r && !elementInfo.rotatable) {
|
||||||
delete pixel.r;
|
delete pixel.r;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@ elements.soul = {
|
||||||
}
|
}
|
||||||
else if (Math.random() < 0.01) {
|
else if (Math.random() < 0.01) {
|
||||||
pixel.glow = false;
|
pixel.glow = false;
|
||||||
|
delete pixel.glow;
|
||||||
}
|
}
|
||||||
if (Math.random() < 0.0002 && isEmpty(pixel.x,pixel.y+1)) {
|
if (Math.random() < 0.0002 && isEmpty(pixel.x,pixel.y+1)) {
|
||||||
createPixel("ectoplasm",pixel.x,pixel.y+1);
|
createPixel("ectoplasm",pixel.x,pixel.y+1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue