strong pistons
This commit is contained in:
parent
6e778d9425
commit
4a78ddac88
|
|
@ -38,7 +38,7 @@ const heatfunc = function(pixel){
|
||||||
pixel.color = "rgb(" + weightedAverage(pixel.ogR, newR, weight) + "," + weightedAverage(pixel.ogG, newG, weight) + "," + weightedAverage(pixel.ogB, newB, weight) + ")";
|
pixel.color = "rgb(" + weightedAverage(pixel.ogR, newR, weight) + "," + weightedAverage(pixel.ogG, newG, weight) + "," + weightedAverage(pixel.ogB, newB, weight) + ")";
|
||||||
}}};
|
}}};
|
||||||
if (!eLists.metals) { eLists.metals = [] }
|
if (!eLists.metals) { eLists.metals = [] }
|
||||||
eLists.metals = eLists.metals.concat(["iron", "glass", "copper", "gold", "brass","steel","nickel","zinc","silver","aluminum","bronze","metal_scrap","oxidized_copper","tin","lead", "rose_gold"])
|
eLists.metals = eLists.metals.concat(["iron", "glass", "copper", "gold", "brass","steel","nickel","zinc","silver","aluminum","bronze","metal_scrap","oxidized_copper","tin","lead", "rose_gold", "tungsten"])
|
||||||
eLists.metals.forEach(metal => {
|
eLists.metals.forEach(metal => {
|
||||||
const prefunc = elements[metal].tick;
|
const prefunc = elements[metal].tick;
|
||||||
if (!prefunc){
|
if (!prefunc){
|
||||||
|
|
|
||||||
|
|
@ -3093,7 +3093,7 @@ 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)){
|
||||||
tryMove(pixelMap[lx][ly], pCoord[0], pCoord[1])
|
tryMove(pixelMap[lx][ly], pCoord[0], pCoord[1], null, true)
|
||||||
}
|
}
|
||||||
pCoord[0] = lx;
|
pCoord[0] = lx;
|
||||||
pCoord[1] = ly;
|
pCoord[1] = ly;
|
||||||
|
|
@ -3153,7 +3153,7 @@ elements.specific_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)){
|
||||||
tryMove(pixelMap[lx][ly], pCoord[0], pCoord[1])
|
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