fix
This commit is contained in:
parent
1ecde15f63
commit
87b2079f8d
|
|
@ -215,6 +215,7 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod))
|
|||
};
|
||||
if(!singularityChoices.includes(singularityName)) {
|
||||
singularityChoices.push(singularityName);
|
||||
console.log(3);
|
||||
};
|
||||
}
|
||||
if(isNocheer) {
|
||||
|
|
@ -360,13 +361,17 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod))
|
|||
};
|
||||
});
|
||||
|
||||
if(typeof(singularityChoices) === "undefined") {
|
||||
singularityChoices = [];
|
||||
};
|
||||
|
||||
elements.spawn_random_singularity = {
|
||||
color: ["#3e5f8a","#a334ec","#ea96f9","#a6ecf6","#70ebc8","#d9286b","#7eed91","#a18b30"],
|
||||
behavior: behaviors.WALL,
|
||||
category: "special",
|
||||
excludeRandom: true,
|
||||
tick: function(pixel) {
|
||||
changePixel(pixel,singularityChoices[Math.floor(Math.random() * singularityChoices.length)])
|
||||
singularityChoices.length == 0 ? deletePixel(pixel.x,pixel.y) : changePixel(pixel,singularityChoices[Math.floor(Math.random() * singularityChoices.length)]);
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue