if not angelsmods then angelsmods = {} end if not angelsmods.ores then angelsmods.ores = {} end if not bobmods then bobmods = {false} end require("config") if angelsmods.ores.rsomodetrigger then angelsmods.ores.EnableRsoMode = false end if angelsmods.ores.EnableInfiniteOres then if angelsmods.ores.EnableRsoMode then require("prototypes.generation.vanilla-resources-rso") else require("prototypes.generation.vanilla-controls") require("prototypes.generation.vanilla-noise") require("prototypes.generation.vanilla-resources") end if bobmods.ores then if angelsmods.ores.EnableInfinitebobbauxite then require("prototypes.generation.bob-bauxite") end if angelsmods.ores.EnableInfinitebobcobalt then require("prototypes.generation.bob-cobalt") end if angelsmods.ores.EnableInfinitebobgems then require("prototypes.generation.bob-gems") end if angelsmods.ores.EnableInfinitebobgold then require("prototypes.generation.bob-gold") end if angelsmods.ores.EnableInfiniteboblead then require("prototypes.generation.bob-lead") end if angelsmods.ores.EnableInfinitebobnickel then require("prototypes.generation.bob-nickel") end if angelsmods.ores.EnableInfinitebobquartz then require("prototypes.generation.bob-quartz") end if angelsmods.ores.EnableInfinitebobrutile then require("prototypes.generation.bob-rutile") end if angelsmods.ores.EnableInfinitebobsilver then require("prototypes.generation.bob-silver") end if angelsmods.ores.EnableInfinitebobsulfur then require("prototypes.generation.bob-sulfur") end if angelsmods.ores.EnableInfinitebobtin then require("prototypes.generation.bob-tin") end if angelsmods.ores.EnableInfinitebobtungsten then require("prototypes.generation.bob-tungsten") end if angelsmods.ores.EnableInfinitebobzinc then require("prototypes.generation.bob-zinc") end end end if bobmods.ores then if bobmods.ores.settings.UnsortedGemOre == true then bobmods.lib.add_item_to_resource("infinite-gem-ore", {name="gem-ore"}) else bobmods.lib.add_item_to_resource("infinite-gem-ore", {name="diamond-ore", probability = bobmods.gems.DiamondRatio}) bobmods.lib.add_item_to_resource("infinite-gem-ore", {name="emerald-ore", probability = bobmods.gems.EmeraldRatio}) bobmods.lib.add_item_to_resource("infinite-gem-ore", {name="amethyst-ore", probability = bobmods.gems.AmethystRatio}) bobmods.lib.add_item_to_resource("infinite-gem-ore", {name="ruby-ore", probability = bobmods.gems.RubyRatio}) bobmods.lib.add_item_to_resource("infinite-gem-ore", {name="sapphire-ore", probability = bobmods.gems.SapphireRatio}) bobmods.lib.add_item_to_resource("infinite-gem-ore", {name="topaz-ore", probability = bobmods.gems.TopazRatio}) end if bobmods.ores.settings.GemsFromOtherOres == true then bobmods.lib.add_item_to_resource("infinite-coal", {name="diamond-ore", probability = bobmods.ores.settings.GemProbability * bobmods.gems.DiamondRatio}) bobmods.lib.add_item_to_resource("infinite-quartz", {name="emerald-ore", probability = bobmods.ores.settings.GemProbability * bobmods.gems.EmeraldRatio}) bobmods.lib.add_item_to_resource("infinite-quartz", {name="amethyst-ore", probability = bobmods.ores.settings.GemProbability * bobmods.gems.AmethystRatio}) bobmods.lib.add_item_to_resource("infinite-bauxite-ore", {name="ruby-ore", probability = bobmods.ores.settings.GemProbability * bobmods.gems.RubyRatio}) bobmods.lib.add_item_to_resource("infinite-bauxite-ore", {name="sapphire-ore", probability = bobmods.ores.settings.GemProbability * bobmods.gems.SapphireRatio}) bobmods.lib.add_item_to_resource("infinite-bauxite-ore", {name="topaz-ore", probability = bobmods.ores.settings.GemProbability * bobmods.gems.TopazRatio}) end if bobmods.ores.settings.LeadGivesNickel == true then bobmods.lib.add_item_to_resource("infinite-lead-ore", {name = "nickel-ore", probability = bobmods.ores.settings.LeadNickelRatio}) end if bobmods.ores.settings.NickelGivesCobalt == true then if bobmods.ores.nickel.enabled then bobmods.lib.add_item_to_resource("infinite-nickel-ore", {name = "cobalt-ore", probability = bobmods.ores.settings.NickelCobaltRatio}) else if bobmods.ores.settings.LeadGivesNickel == true then bobmods.lib.add_item_to_resource("infinite-lead-ore", {name = "cobalt-ore", probability = bobmods.ores.settings.LeadNickelRatio * bobmods.ores.settings.NickelCobaltRatio}) end end end end