excludeRandom
This commit is contained in:
parent
94a6db84d9
commit
aed0d65325
|
|
@ -3,8 +3,6 @@ var runAfterAutogenMod = "mods/runAfterAutogen and onload restructure.js";
|
||||||
var libraryMod = "mods/code_library.js";
|
var libraryMod = "mods/code_library.js";
|
||||||
|
|
||||||
if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod)) {
|
if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod)) {
|
||||||
var testName = "neutronium_compressor";
|
|
||||||
|
|
||||||
var singularityColorTemplate = ["#202020", "#505050", "#b0b0b0", "#c7c7c7"];
|
var singularityColorTemplate = ["#202020", "#505050", "#b0b0b0", "#c7c7c7"];
|
||||||
|
|
||||||
singularityNumber = 10000;
|
singularityNumber = 10000;
|
||||||
|
|
@ -242,7 +240,7 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod))
|
||||||
return count;
|
return count;
|
||||||
};
|
};
|
||||||
|
|
||||||
elements[testName] = {
|
elements.neutronium_compressor = {
|
||||||
color: "#e7e7ee",
|
color: "#e7e7ee",
|
||||||
properties: {
|
properties: {
|
||||||
range: 4,
|
range: 4,
|
||||||
|
|
@ -254,6 +252,7 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod))
|
||||||
state: "solid",
|
state: "solid",
|
||||||
density: 54000,
|
density: 54000,
|
||||||
hardness: 1,
|
hardness: 1,
|
||||||
|
excludeRandom: true,
|
||||||
tick: function(pixel) {
|
tick: function(pixel) {
|
||||||
if(pixel.range == undefined) {
|
if(pixel.range == undefined) {
|
||||||
pixel.range = 4;
|
pixel.range = 4;
|
||||||
|
|
@ -272,7 +271,7 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod))
|
||||||
if(!isEmpty(fX,fY,true)) {
|
if(!isEmpty(fX,fY,true)) {
|
||||||
var newPixel = pixelMap[fX][fY];
|
var newPixel = pixelMap[fX][fY];
|
||||||
var newElement = newPixel.element;
|
var newElement = newPixel.element;
|
||||||
if(newElement !== testName) {
|
if(newElement !== "neutronium_compressor") {
|
||||||
//Jinsoulite handling
|
//Jinsoulite handling
|
||||||
if(typeof(jinsouliteSpreadWhitelist) !== "undefined") {
|
if(typeof(jinsouliteSpreadWhitelist) !== "undefined") {
|
||||||
if(jinsouliteSpreadWhitelist.includes(newPixel.element)) {
|
if(jinsouliteSpreadWhitelist.includes(newPixel.element)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue