-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdata-updates.lua
49 lines (39 loc) · 1.77 KB
/
data-updates.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by heyqule.
--- DateTime: 10/29/2024 2:29 AM
---
require("__erm_zerg__/global")
require "prototypes.update-teamcolour"
local MapGenFunctions = require('__erm_libs__/prototypes/map_gen')
if feature_flags.space_travel then
require "prototypes.update-demolisher"
end
-- Update RTS world
local mapgen = data.raw["map-gen-presets"]["default"]
mapgen["erm-rts-death-world"]["basic_settings"]["autoplace_controls"][AUTOCONTROL_NAME] = { frequency = "very-high", size = "very-big" }
if mapgen["death-world"] then
mapgen["death-world"]["basic_settings"]["autoplace_controls"][AUTOCONTROL_NAME] = { frequency = "very-high", size = "very-big" }
end
if mapgen["erm-debug"] then
mapgen["erm-debug"]["basic_settings"]["autoplace_controls"][AUTOCONTROL_NAME] = { frequency = 5, size = 5 }
end
local nauvis_autocontrols = data.raw.planet.nauvis.map_gen_settings.autoplace_controls
local nauvis_enemy_settings = settings.startup["enemyracemanager-nauvis-enemy"].value
if nauvis_enemy_settings == MOD_NAME then
MapGenFunctions.remove_enemy_autoplace_controls(nauvis_autocontrols)
nauvis_autocontrols[AUTOCONTROL_NAME] = {}
--- Inject itself autocontrol for mixed mode
elseif nauvis_enemy_settings == NAUVIS_MIXED then
nauvis_autocontrols[AUTOCONTROL_NAME] = {}
end
if feature_flags.space_travel and settings.startup["enemy_erm_zerg-on_vulcanus"].value then
local vulcanus = data.raw.planet.vulcanus
vulcanus.map_gen_settings.autoplace_controls[AUTOCONTROL_NAME] = {}
--- Replace territory bosses with zerg variance.
vulcanus.map_gen_settings.territory_settings.units = {
MOD_NAME .. "--small-demolisher",
MOD_NAME .. "--medium-demolisher",
MOD_NAME .. "--big-demolisher",
}
end