generated from fgardt/factorio-mod-template
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathcontrol.lua
32 lines (26 loc) · 841 Bytes
/
control.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
require 'lib.lib'
h2o.TRENCH_SURFACE_NAME = 'h2o-trench'
h2o.MARAXSIS_SURFACE_NAME = 'h2o-maraxsis'
local prototypes = {
[h2o.MARAXSIS_SURFACE_NAME] = require 'scripts.map-gen.surfaces.maraxsis',
[h2o.TRENCH_SURFACE_NAME] = require 'scripts.map-gen.surfaces.maraxsis-trench',
}
for _, prototype in pairs(prototypes) do
local as_array = {}
local i = 1
for noise_layer, setting in pairs(prototype.noise_layers) do
if not setting.cellular then
as_array[i] = noise_layer
i = i + 1
end
end
prototype.noise_layers_as_array = as_array
end
h2o.prototypes = prototypes
require 'scripts.map-gen.map-gen'
require 'scripts.submarine'
require 'scripts.drowning'
require 'scripts.nightvision'
require 'scripts.pressure-dome'
require 'scripts.quantum-computer'
h2o.finalize_events()