forked from danielmartin0/PlanetsLib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.lua
More file actions
33 lines (27 loc) · 862 Bytes
/
data.lua
File metadata and controls
33 lines (27 loc) · 862 Bytes
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
local orbits = require("lib.orbits")
PlanetsLib = {}
require("api")
PlanetsLib.check_global_variables()
require("prototypes.vanilla-override.recipe-productivity-technology")
require("prototypes.mod-data")
if mods["space-age"] then
require("prototypes.surface-property")
require("prototypes.categories")
require("prototypes.star")
orbits.ensure_all_locations_have_orbits() -- We also call this in data-updates, but it's good to call it here as well so that if the vanilla planets are moved in data.lua (or before this code runs in data-updates.lua), we correctly recognize that their orbital children should be moved as well.
end
data:extend({
{
type = "mod-data",
name = "Planetslib",
data = {
unlinked_prerequisites = {},
planet_cargo_drop_whitelists = {
all = {
entity_types = {},
item_names = {},
},
},
},
},
})