Repository navigation
Expand file tree
/
Copy pathcontrol.lua
More file actions
43 lines (39 loc) · 1.88 KB
/
Copy pathcontrol.lua
File metadata and controls
43 lines (39 loc) · 1.88 KB
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
-- Runtime control stage. Currently minimal — most work is done at data stage.
-- Add event handlers here as cross-mod runtime needs are identified.
local ic = {}
-- Fired when a player reaches a new surface for the first time.
-- Use this to trigger cross-mod planet arrival events if needed.
script.on_event(defines.events.on_player_changed_surface, function(event)
-- TODO: cross-mod arrival hooks
end)
-- Convenience: log which planet mods are active at startup.
script.on_init(function()
local active = {}
local planet_mods = {
"Cerys-Moon-of-Fulgora", "Moshine", "Muria", "Nexus", "Paracelsin",
"Pyroclast", "Velora", "virentis", "lignumis", "maraxsis",
"ribbonia", "rubia", "foliax", "tenebris-prime", "terrapalus",
"Voidcraft", "carna", "castra", "Igrys", "Insectitron",
"IridescentIndustry", "Arcanyx", "Solar-Halo", "SolarMatrix",
"omni", "pelagos", "obsidiax", "linox", "corrundum", "cubium",
"panglia_planet", "dea-dia-system", "janus-reshifted", "secretas",
"moon-eneas", "planet-arrakis", "planet-crucible", "planet-froodara",
"planet-gerkizia", "planet-hexalith", "planet-ithurice", "planet-mickora",
"planet-muluna", "planet-nekohaven", "planet-quadromire", "planet-rabbasca",
"planet-tapatrion", "planet-tchekor", "planet-vicrox", "planet-zzhora",
"planet_erimos_prime", "planetaris-arig", "planetaris-dyes",
"planetaris-hyarion", "planetaris-tellus", "skewer_planet_vesta",
"skewer_shattered_planet",
}
for _, mod_name in ipairs(planet_mods) do
if script.active_mods[mod_name] then
table.insert(active, mod_name)
end
end
if #active > 0 then
log("[interstellar-confluence] Active planet mods: " .. table.concat(active, ", "))
end
end)
script.on_load(function()
-- Restore any runtime state here when loading a save.
end)