Update allthemods.js
This commit is contained in:
parent
c045baf3db
commit
028db668f0
|
|
@ -1,4 +1,4 @@
|
||||||
var mods_to_include = ["mods/glow.js", "mods/circuitcore.js", "mods/clone_liquid.js", "mods/colored_lightbulbs.js", "mods/combustion.js", "mods/conveyance.js", "mods/coresbyp.js", "mods/datawire.js", "mods/drill.js", "mods/ExtraMachines.js", "mods/fans.js", "mods/fine_tuned_cloner.js", "mods/flipflop.js", "mods/fueled_generators.js", "mods/gameOfLife.js", "mods/heatshield.js", "mods/human_friendly_design.js", "mods/industry.js", "mods/logicgates.js", "mods/note_block_advanced.js", "mods/note_block.js", "mods/nousersthings.js", "mods/portal.js", "mods/pullers.js", "mods/pushers.js", "mods/sandboxels.js", "mods/schematics.js", "mods/scp.js", "mods/spouts.js", "mods/state_voids.js", "mods/switches.js", "mods/thiquovite.js", "mods/ticking_temp_stuff.js", "mods/video.js", "mods/waterspout.js", "mods/WhisperingTheory.js", "mods/wifi_draw.js", "mods/aircrafts.js", "mods/c_fighter_jet.js", "mods/guided_rocket.js", "mods/icb.js", "mods/life_eater.js", "mods/liquid_void.js", "mods/meat_rockets.js", "mods/more_breaking.js", "mods/rays.js", "mods/rays++.js", "mods/scp.js", "mods/subspace.js", "mods/war_crimes.js", "mods/weapons.js", "mods/aChefsDream_beta.js", "mods/aChefsDream.js", "mods/aChefsDream2.js", "mods/bananas.js", "mods/CherrySoda.js", "mods/community_desserts.js", "mods/devsnacks.js", "mods/GrapeSoda.js", "mods/greenitemsandmore.js", "mods/ketchup_mod.js", "mods/lemonade.js", "mods/morefoodsmod.js", "mods/mossstuff.js", "mods/mustard.js", "mods/potato_chips.js", "mods/sbstuff.js", "mods/soups.js", "mods/weAllScreamFor.js", "mods/apioforms_pre.js", "mods/baby.js", "mods/bacteria_mod.js", "mods/bananas.js", "mods/biology.js", "mods/cat.js", "mods/cells.js", "mods/children.js", "mods/coldblooded.js", "mods/colonies.js", "mods/crimson.js", "mods/dogs.js", "mods/eklegems.js", "mods/fairy_chain.js", "mods/fantastic_creatures.js", "mods/fantasy_elements.js", "mods/fey_and_more.js", "mods/fishin.js", "mods/flowers_and_forests.js", "mods/fwibblen.js", "mods/genetics.js", "mods/human_edit.js", "mods/kopalstuff.js", "mods/lizard_mod.js", "mods/lost_souls.js", "mods/miscible_psoup_and_birthpool.js", "mods/mobs.js", "mods/moretrees.js", "mods/no_blood.js", "mods/nocancer.js", "mods/nocancer2.js", "mods/nograssgrow.js", "mods/ocean.js", "mods/ores.js", "mods/petal_dye.js", "mods/plants.js", "mods/primordial_birthpool.js", "mods/scp.js", "mods/spring.js", "mods/the_ground_og.js", "mods/toothpaste.js", "mods/volcanic_expansion.js", "mods/alcohol.js","mods/alkahest.js","mods/alkali_metal.js","mods/bettermetalscrap.js","mods/boiling_things.js","mods/bouncing_balls.js","mods/chalk.js","mods/chem.js","mods/grav_mudstones.js","mods/halogen.js","mods/liquid_mixing.js","mods/lye.js","mods/metals.js","mods/mixture.js","mods/moreliquids.js", "mods/PRNGworldgenlib.js"
|
var mods_to_include = ["glow.js", "circuitcore.js", "clone_liquid.js", "colored_lightbulbs.js", "combustion.js", "conveyance.js", "coresbyp.js", "datawire.js", "drill.js", "ExtraMachines.js", "fans.js", "fine_tuned_cloner.js", "flipflop.js", "fueled_generators.js", "gameOfLife.js", "heatshield.js", "human_friendly_design.js", "industry.js", "logicgates.js", "note_block_advanced.js", "note_block.js", "nousersthings.js", "portal.js", "pullers.js", "pushers.js", "sandboxels.js", "schematics.js", "scp.js", "spouts.js", "state_voids.js", "switches.js", "thiquovite.js", "ticking_temp_stuff.js", "video.js", "waterspout.js", "WhisperingTheory.js", "wifi_draw.js", "aircrafts.js", "c_fighter_jet.js", "guided_rocket.js", "icb.js", "life_eater.js", "liquid_void.js", "meat_rockets.js", "more_breaking.js", "rays.js", "rays++.js", "scp.js", "subspace.js", "war_crimes.js", "weapons.js", "aChefsDream_beta.js", "aChefsDream.js", "aChefsDream2.js", "bananas.js", "CherrySoda.js", "community_desserts.js", "devsnacks.js", "GrapeSoda.js", "greenitemsandmore.js", "ketchup_mod.js", "lemonade.js", "morefoodsmod.js", "mossstuff.js", "mustard.js", "potato_chips.js", "sbstuff.js", "soups.js", "weAllScreamFor.js", "apioforms_pre.js", "baby.js", "bacteria_mod.js", "bananas.js", "biology.js", "cat.js", "cells.js", "children.js", "coldblooded.js", "colonies.js", "crimson.js", "dogs.js", "eklegems.js", "fairy_chain.js", "fantastic_creatures.js", "fantasy_elements.js", "fey_and_more.js", "fishin.js", "flowers_and_forests.js", "fwibblen.js", "genetics.js", "human_edit.js", "kopalstuff.js", "lizard_mod.js", "lost_souls.js", "miscible_psoup_and_birthpool.js", "mobs.js", "moretrees.js", "no_blood.js", "nocancer.js", "nocancer2.js", "nograssgrow.js", "ocean.js", "ores.js", "petal_dye.js", "plants.js", "primordial_birthpool.js", "scp.js", "spring.js", "the_ground_og.js", "toothpaste.js", "volcanic_expansion.js", "alcohol.js","alkahest.js","alkali_metal.js","bettermetalscrap.js","boiling_things.js","bouncing_balls.js","chalk.js","chem.js","grav_mudstones.js","halogen.js","liquid_mixing.js","lye.js","metals.js","mixture.js","moreliquids.js", "PRNGworldgenlib.js"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -8,13 +8,14 @@ var mods_included = mods_to_include.map(mod => enabledMods.includes(mod));
|
||||||
var all_mods_included = mods_included.reduce(function(a,b) { return a && b });
|
var all_mods_included = mods_included.reduce(function(a,b) { return a && b });
|
||||||
|
|
||||||
if(!all_mods_included) {
|
if(!all_mods_included) {
|
||||||
var mods_needed = mods_to_include.filter(function(modPath) { return !(enabledMods.includes(modPath)) });
|
// var mods_needed = mods_to_include.filter(function(modPath) { return !(enabledMods.includes(modPath)) });
|
||||||
|
|
||||||
mods_needed.forEach(function(modPath) {
|
mods_needed.forEach(function(modName) {
|
||||||
enabledMods.splice(enabledMods.indexOf("mods/allthemods"),0,modPath);
|
// enabledMods.splice(enabledMods.indexOf("allthemods"),0,modPath);
|
||||||
|
dependOn(modPath, ()=>{}, true)
|
||||||
});
|
});
|
||||||
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
// localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
||||||
alert(`The following mods have been inserted: ${mods_needed.join(", ")}
|
// alert(`The following mods have been inserted: ${mods_needed.join(", ")}
|
||||||
Reload the page for the mods to take effect.`)
|
// Reload the page for the mods to take effect.`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue