mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-13 05:08:44 +09:00
46 lines
1.1 KiB
Lua
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
|