diff --git a/control.lua b/control.lua index 464c4469..5671021d 100644 --- a/control.lua +++ b/control.lua @@ -89,7 +89,7 @@ end if config.player_onboarding.enabled then require 'features.player_onboarding' end -if config.biter_attacks then +if config.biter_attacks.enabled then require 'map_gen.shared.biter_attacks' end if config.player_quick_bars.enabled then diff --git a/map_gen/maps/crash_site.lua b/map_gen/maps/crash_site.lua index 2b9c4b6d..3ec6095f 100644 --- a/map_gen/maps/crash_site.lua +++ b/map_gen/maps/crash_site.lua @@ -14,6 +14,7 @@ local ScenarioInfo = require 'features.gui.info' local table = require 'utils.table' local RS = require 'map_gen.shared.redmew_surface' local MGSP = require 'resources.map_gen_settings' +local config = require 'config' local degrees = math.degrees @@ -39,7 +40,8 @@ ScenarioInfo.add_map_extra_info( '- Outposts have enemy turrets defending them.\n- Outposts have loot and provide a steady stream of resources.\n- Outpost markets to purchase items and outpost upgrades.\n- Capturing outposts increases evolution.\n- Reduced damage by all player weapons, turrets, and ammo.\n- Biters have more health and deal more damage.\n- Biters and spitters spawn on death of entities.' ) -global.config.market.enabled = false +config.market.enabled = false +config.biter_attacks.enabled = false -- leave seeds nil to have them filled in based on the map seed. local outpost_seed = nil --91000 @@ -767,7 +769,6 @@ Global.register_init( local seed = RS.get_surface().map_gen_settings.seed tbl.outpost_seed = outpost_seed or seed tbl.ore_seed = ore_seed or seed - global.config.market.enable = false end, function(tbl) outpost_seed = tbl.outpost_seed