mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -5,6 +5,7 @@ Date: 2025-04-03
|
|||||||
Changes:
|
Changes:
|
||||||
- [SA] Fusion generator changed to input and output fluid.
|
- [SA] Fusion generator changed to input and output fluid.
|
||||||
- [CT] Cleanup map preset generation code.
|
- [CT] Cleanup map preset generation code.
|
||||||
|
- [VP] Hide some unused item, such as recycling recipe.
|
||||||
|
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 3.0.82
|
Version: 3.0.82
|
||||||
|
|||||||
@@ -2,10 +2,17 @@ local items = require 'config'
|
|||||||
local main = require 'main'
|
local main = require 'main'
|
||||||
|
|
||||||
if mods['space-age'] and settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value then
|
if mods['space-age'] and settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value then
|
||||||
|
local vp = settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value
|
||||||
|
local sa = settings.startup['PHI-SA'].value and settings.startup['PHI-SA-GENERIC'].value
|
||||||
|
|
||||||
for k, v in pairs(data.raw.recipe) do
|
for k, v in pairs(data.raw.recipe) do
|
||||||
if v.category == 'recycling' then
|
if vp and v.category == 'recycling' then
|
||||||
data.raw.recipe[k] = nil
|
data.raw.recipe[k] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if (vp or sa) and v.maximum_productivity then
|
||||||
|
v.maximum_productivity = nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user