restructure dep block
This commit is contained in:
parent
420873c568
commit
50152c12f0
|
|
@ -12,14 +12,8 @@ var modName = "mods/the_ground.js";
|
|||
var libraryMod = "mods/code_library.js";
|
||||
var colorOffsetMod = "mods/maxColorOffset.js";
|
||||
|
||||
if(!enabledMods.includes(libraryMod)) {
|
||||
enabledMods.splice(enabledMods.indexOf(modName),0,libraryMod);
|
||||
enabledMods.splice(enabledMods.indexOf(modName),0,colorOffsetMod);
|
||||
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
||||
alert(`The ${libraryMod} and ${colorOffsetMod} mods are required and have been automatically inserted (reload for this to take effect).`);
|
||||
} else {
|
||||
|
||||
//Variables
|
||||
if(enabledMods.includes(libraryMod) && enabledMods.includes(colorOffsetMod)) {
|
||||
//Variables
|
||||
|
||||
//var vitreousInterfelsicName = "obsidian";
|
||||
var vitreousInterfelsicName = "dacidian";
|
||||
|
|
@ -33,7 +27,7 @@ if(!enabledMods.includes(libraryMod)) {
|
|||
|
||||
var gravels = [ "granite_gravel", "granodiorite_gravel", "diorite_gravel", "gravel", "peridotite_gravel", "rhyolite_gravel", "dacite_gravel", "andesite_gravel", "basalt_gravel", "komatiite_gravel", "pumice_gravel", "intermediate_pumice_gravel", "scoria_gravel", "mafic_scoria_gravel", "ultramafic_scoria_gravel", "obsidian_shard", "dacidian_shard", "andesidian_shard", "basalidian_shard", "komatidian_shard" ];
|
||||
|
||||
//Functions
|
||||
//Functions
|
||||
|
||||
//Star world matter function
|
||||
|
||||
|
|
@ -1780,7 +1774,7 @@ if(!enabledMods.includes(libraryMod)) {
|
|||
elements.molten_dirt.stateHigh = rockStateHigh; //assuming mixture
|
||||
});
|
||||
|
||||
//Terrain
|
||||
//Terrain
|
||||
|
||||
//Soils
|
||||
|
||||
|
|
@ -2678,7 +2672,7 @@ if(!enabledMods.includes(libraryMod)) {
|
|||
};
|
||||
};
|
||||
|
||||
/* //Rocks
|
||||
/* //Rocks
|
||||
|
||||
//Igneous
|
||||
|
||||
|
|
@ -2751,7 +2745,7 @@ if(!enabledMods.includes(libraryMod)) {
|
|||
},
|
||||
|
||||
newPowder("olivine_shard",["#97ba65","#7a994e","#99d96c","#7cb553"],2811,1890,molten_olivine,null);
|
||||
*/
|
||||
*/
|
||||
//Gems
|
||||
//There is a mineral classification scheme, but it will take a while to implement if I ever get around to it.
|
||||
//We're assuming that the crystal structures reform properly because I don't want to have to research and implement refrozen amorphous forms.
|
||||
|
|
@ -3667,7 +3661,7 @@ if(!enabledMods.includes(libraryMod)) {
|
|||
elements.water.reactions[filteredWaterIrradiationArray[i]] = { "elem1":"radioactive_water", chance: 0.01 }
|
||||
};*/
|
||||
|
||||
//Generation
|
||||
//Generation
|
||||
|
||||
//TNT world
|
||||
|
||||
|
|
@ -4014,4 +4008,9 @@ if(!enabledMods.includes(libraryMod)) {
|
|||
|
||||
|
||||
|
||||
} else {
|
||||
if(!enabledMods.includes(libraryMod)) { enabledMods.splice(enabledMods.indexOf(modName),0,libraryMod) };
|
||||
if(!enabledMods.includes(colorOffsetMod)) { enabledMods.splice(enabledMods.indexOf(modName),0,colorOffsetMod) };
|
||||
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
||||
alert(`The "${libraryMod}" and "${colorOffsetMod}" mods are required and have been automatically inserted (reload for this to take effect).`)
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue