density requirement 200+ for squeezing
This commit is contained in:
parent
abcea7daad
commit
25684ef889
|
|
@ -40,7 +40,7 @@ if(enabledMods.includes(onTryMoveIntoMod) && enabledMods.includes(libraryMod)) {
|
|||
return false;
|
||||
};
|
||||
var otherInfo = elements[otherPixel.element]
|
||||
if((otherInfo.state ?? "solid") == "solid") {
|
||||
if((otherInfo.state ?? "solid") == "solid" && (otherInfo.density ?? 1000) >= 200) {
|
||||
//console.log(otherPixel.element,otherInfo.state);
|
||||
var outputOffsets = [pixel.x - otherPixel.x, pixel.y - otherPixel.y];
|
||||
var twiceOffsets = outputOffsets.map(x => x * 2);
|
||||
|
|
@ -73,4 +73,4 @@ if(enabledMods.includes(onTryMoveIntoMod) && enabledMods.includes(libraryMod)) {
|
|||
enabledMods.splice(enabledMods.indexOf(modName),0,libraryMod);
|
||||
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
||||
alert(`The ${onTryMoveIntoMod} mod and ${libraryMod} mods are required and have been automatically inserted (reload for this to take effect).`);
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue