Files
factorio-mod-PHI-CL/PHI-CL/data.lua
T
2026-04-30 18:47:23 +09:00

46 lines
1.1 KiB
Lua

local items = require 'config'
if settings.startup['PHI-MB'].value then
if settings.startup['PHI-MB-ENERGY'].value then
require 'data.b.mbe'
end
if settings.startup['PHI-MB-MACHINE'].value then
require 'data.b.mbm'
end
if settings.startup['PHI-MB-EQUIPMENT'].value then
require 'data.b.mbq'
end
end
if settings.startup['PHI-CT'].value then
require 'data.b.ct'
end
if settings.startup['PHI-MI'].value then
require 'data.b.mi'
end
if (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].value) or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
require 'data.b.mig'
end
if mods['space-age'] then
require 'data.b.sa'
else
error('[PHI-CL][SA] Space Age not detected.')
end
if mods['space-age'] and (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then
require 'data.b.gm'
end
if settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'SAP' then
require 'data.b.gm-sap'
end
if settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'VP' then
require 'data.b.gm-vp'
end