mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-27 13:56:20 +09:00
.
This commit is contained in:
@@ -23,7 +23,11 @@ for _, v in pairs(items) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if data.raw['assembling-machine'] and data.raw['assembling-machine']['assembling-machine'] and settings.startup['PHI-MB-MACHINE'].value > 1 then
|
||||||
for i = 4, settings.startup['PHI-MB-MACHINE'].value + 2 do
|
for i = 4, settings.startup['PHI-MB-MACHINE'].value + 2 do
|
||||||
|
if data.raw['assembling-machine']['assembling-machine-' .. i] then
|
||||||
data.raw['assembling-machine']['assembling-machine-' .. i].localised_name = {'phi-cl.combine', {'?', {'entity-name.assembling-machine'}, {'name.assembling-machine'}}, tostring(i)}
|
data.raw['assembling-machine']['assembling-machine-' .. i].localised_name = {'phi-cl.combine', {'?', {'entity-name.assembling-machine'}, {'name.assembling-machine'}}, tostring(i)}
|
||||||
data.raw['item']['assembling-machine-' .. i].localised_name = {'phi-cl.combine', {'?', {'entity-name.assembling-machine'}, {'name.assembling-machine'}}, tostring(i)}
|
data.raw['item']['assembling-machine-' .. i].localised_name = {'phi-cl.combine', {'?', {'entity-name.assembling-machine'}, {'name.assembling-machine'}}, tostring(i)}
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
@@ -137,3 +137,30 @@ if settings.startup['PHI-MB-EQUIPMENT-SIZE'].value then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if data.raw['battery-equipment'] and data.raw['battery-equipment']['battery-equipment'] and settings.startup['PHI-MB-EQUIPMENT'].value > 1 then
|
||||||
|
for i = 4, settings.startup['PHI-MB-EQUIPMENT'].value + 2 do
|
||||||
|
if data.raw['battery-equipment']['battery-equipment-mk' .. i .. '-equipment'] then
|
||||||
|
data.raw['battery-equipment']['battery-equipment-mk' .. i .. '-equipment'].localised_name = {'phi-cl.combine', {'?', {'equipment-name.battery-equipment'}, {'name.battery-equipment'}}, tostring(i)}
|
||||||
|
data.raw['item']['battery-equipment-mk' .. i .. '-equipment'].localised_name = {'phi-cl.combine', {'?', {'equipment-name.battery-equipment'}, {'name.battery-equipment'}}, tostring(i)}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if data.raw['energy-shield-equipment'] and data.raw['energy-shield-equipment']['energy-shield-equipment'] and settings.startup['PHI-MB-EQUIPMENT'].value > 1 then
|
||||||
|
for i = 3, settings.startup['PHI-MB-EQUIPMENT'].value + 1 do
|
||||||
|
if data.raw['energy-shield-equipment']['energy-shield-mk' .. i .. '-equipment'] then
|
||||||
|
data.raw['energy-shield-equipment']['energy-shield-mk' .. i .. '-equipment'].localised_name = {'phi-cl.combine', {'?', {'equipment-name.energy-shield'}, {'name.energy-shield'}}, tostring(i)}
|
||||||
|
data.raw['item']['energy-shield-mk' .. i .. '-equipment'].localised_name = {'phi-cl.combine', {'?', {'equipment-name.energy-shield'}, {'name.energy-shield'}}, tostring(i)}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if data.raw['personal-roboport-equipment'] and data.raw['personal-roboport-equipment']['personal-roboport-equipment'] and settings.startup['PHI-MB-EQUIPMENT'].value > 1 then
|
||||||
|
for i = 3, settings.startup['PHI-MB-EQUIPMENT'].value + 1 do
|
||||||
|
if data.raw['personal-roboport-equipment']['personal-roboport-mk' .. i .. '-equipment'] then
|
||||||
|
data.raw['personal-roboport-equipment']['personal-roboport-mk' .. i .. '-equipment'].localised_name = {'phi-cl.combine', {'?', {'equipment-name.personal-roboport'}, {'name.personal-roboport'}}, tostring(i)}
|
||||||
|
data.raw['item']['personal-roboport-mk' .. i .. '-equipment'].localised_name = {'phi-cl.combine', {'?', {'equipment-name.personal-roboport'}, {'name.personal-roboport'}}, tostring(i)}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user