commit
7ce1d22eab
|
|
@ -3062,6 +3062,15 @@ elements.ray_emitter.desc = "Emits a ray of the specified element in the opposit
|
||||||
elements.specific_ray_emitter.desc = "Emits a ray of the specified element in a specific direction and a specific length."
|
elements.specific_ray_emitter.desc = "Emits a ray of the specified element in a specific direction and a specific length."
|
||||||
elements.blackhole_storage.desc = "Stores elements inside of itself. Can be released by shocking it."
|
elements.blackhole_storage.desc = "Stores elements inside of itself. Can be released by shocking it."
|
||||||
let pullOrPush = 1
|
let pullOrPush = 1
|
||||||
|
elements.anchor = {
|
||||||
|
color: "#020c20",
|
||||||
|
category: "machines",
|
||||||
|
behavior: behaviors.WALL,
|
||||||
|
desc: "Anchor; unpushable and unpullable by pistons.",
|
||||||
|
onSelect: function(){
|
||||||
|
logMessage("Unpushable and unpullable by pistons.")
|
||||||
|
}
|
||||||
|
}
|
||||||
elements.piston_ray_emitter = {
|
elements.piston_ray_emitter = {
|
||||||
color: "#143b5f",
|
color: "#143b5f",
|
||||||
behavior: behaviors.WALL,
|
behavior: behaviors.WALL,
|
||||||
|
|
@ -3104,9 +3113,10 @@ elements.piston_ray_emitter = {
|
||||||
var lx = lcoord[0];
|
var lx = lcoord[0];
|
||||||
var ly = lcoord[1];
|
var ly = lcoord[1];
|
||||||
if (!isEmpty(lx, ly, true)){
|
if (!isEmpty(lx, ly, true)){
|
||||||
if (pixelMap[lx][ly].element == "insulator"){break;}
|
if (!(pixelMap[lx][ly].element == "anchor")){
|
||||||
tryMove(pixelMap[lx][ly], pCoord[0], pCoord[1], null, true)
|
tryMove(pixelMap[lx][ly], pCoord[0], pCoord[1], null, true)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
pCoord[0] = lx;
|
pCoord[0] = lx;
|
||||||
pCoord[1] = ly;
|
pCoord[1] = ly;
|
||||||
}
|
}
|
||||||
|
|
@ -3144,8 +3154,10 @@ function pistonEmit(pixel, i){
|
||||||
var lx = lcoord[0];
|
var lx = lcoord[0];
|
||||||
var ly = lcoord[1];
|
var ly = lcoord[1];
|
||||||
if (!isEmpty(lx, ly, true)){
|
if (!isEmpty(lx, ly, true)){
|
||||||
|
if (!(pixelMap[lx][ly].element == "anchor")){
|
||||||
tryMove(pixelMap[lx][ly], pCoord[0], pCoord[1], null, true)
|
tryMove(pixelMap[lx][ly], pCoord[0], pCoord[1], null, true)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
pCoord[0] = lx;
|
pCoord[0] = lx;
|
||||||
pCoord[1] = ly;
|
pCoord[1] = ly;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue