mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-03-28 04:14:39 +09:00
.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
local param = require 'config'
|
||||
local items = require 'config-updates'
|
||||
local main = require 'main'
|
||||
local file_stage = 2
|
||||
|
||||
if settings.startup['PHI-MB'].value then
|
||||
if settings.startup['PHI-MB-ENERGY'].value then
|
||||
@@ -17,12 +15,6 @@ if settings.startup['PHI-MB'].value then
|
||||
end
|
||||
end
|
||||
|
||||
if settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value and settings.startup['PHI-MB-MACHINE-TIER'].value > 1 then
|
||||
for i = 4, settings.startup['PHI-MB-MACHINE-TIER'].value + 2 do
|
||||
data.raw['assembling-machine']['assembling-machine-' .. i].localised_name = {'phi-cl.combine', {'?', {'entity-name.assembling-machine'}, {'name.assembling-machine'}}, tostring(i)}
|
||||
end
|
||||
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
|
||||
if data.raw['constant-combinator']['constant-combinator'] then
|
||||
local item = table.deepcopy(data.raw['item']['constant-combinator'])
|
||||
|
||||
@@ -22,3 +22,7 @@ for _, v in pairs(items) do
|
||||
main.EL(v)
|
||||
end
|
||||
end
|
||||
|
||||
for i = 4, settings.startup['PHI-MB-MACHINE-TIER'].value + 2 do
|
||||
data.raw['assembling-machine']['assembling-machine-' .. i].localised_name = {'phi-cl.combine', {'?', {'entity-name.assembling-machine'}, {'name.assembling-machine'}}, tostring(i)}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user