mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Merge pull request #898 from grilledham/crashsite/disable_biter_attacks
disabled biter attacks module for crashsite
This commit is contained in:
commit
5db05b3eaf
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user