Resource Spawner Overhaul

by orzelek

Overhauls resource spawning system.

26 days ago
0.14 - 1.1
136K

i Compatibility with Tricky Old Nick

a month ago
(updated a month ago)

Someone has requested RSO support for Tricky Old Nick, so I wrote a resource config for it. I would appreciate if you could include it in RSO.

It modifies Nullius's settings, so it must be initialized after Nullius.

        if game.active_mods["tricky-old-nick"] then
                fillTrickyOldNickConfig(config)
        end

Here is an initialization function following the style of other mod-specific config files.

function fillTrickyOldNickConfig(config)

     -- Modify Nullius's iron ore config
     if config["iron-ore"] then
         config["iron-ore"].starting = nil
         config["iron-ore"].allotment = 80
     end

     config["nullius-fumarole"].multi_resource["nullius-nickel-ore"] = 2

     config["nullius-nickel-ore"] = {
         type = "resource-ore",

         allotment = 28,
         spawns_per_region = {min=1, max=1},
         richness = 19000,
         size = {min=10, max=18},
             starting = {richness=1200, size = 25, probability = 1},
                 multi_resource_chance = 0.20,
                 multi_resource = {
                 ["iron-ore"] = 10,
                         ["nullius-fumarole"] = 1
         }
         }
end
26 days ago

Added the config in 6.2.26.

14 days ago

Thank you!

New response