mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
42 lines
1.1 KiB
Lua
42 lines
1.1 KiB
Lua
-- local items = require 'config'
|
|
-- local main = require 'main'
|
|
|
|
do
|
|
local sa = settings.startup['PHI-SA'].value and settings.startup['PHI-SA-GENERIC'].value
|
|
local p = settings.startup['PHI-VP'].value or sa
|
|
|
|
for k, v in pairs(data.raw.recipe) do
|
|
if settings.startup['PHI-VP'].value and v.category == 'recycling' then
|
|
data.raw.recipe[k] = nil
|
|
end
|
|
|
|
if p and v.maximum_productivity then
|
|
v.maximum_productivity = 999
|
|
end
|
|
end
|
|
end
|
|
|
|
if mods['space-age'] then
|
|
for i=2, settings.startup['PHI-MB-ENERGY-POWER-TIER'].value do
|
|
if data.raw.recipe['accumulator-' .. i] then
|
|
data.raw.recipe['accumulator-' .. i].category = 'electronics'
|
|
end
|
|
|
|
if data.raw.recipe['solar-panel-' .. i] then
|
|
data.raw.recipe['solar-panel-' .. i].category = 'electronics'
|
|
end
|
|
end
|
|
end
|
|
|
|
--[[
|
|
for _, v in pairs(items['item']) do
|
|
if v.enabled and (v.max >= v.min) then
|
|
v.category = 'item'
|
|
|
|
for j=v.min, v.max, 1 do
|
|
main.EEEC(v, j)
|
|
end
|
|
end
|
|
end
|
|
]]
|