mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
.
This commit is contained in:
@@ -1,40 +1,4 @@
|
||||
|
||||
do
|
||||
local sa = settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'SAP'
|
||||
local p = (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'VP') or sa
|
||||
|
||||
for k, v in pairs(data.raw.recipe) do
|
||||
if (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'VP') and v.category == 'recycling' then
|
||||
data.raw.recipe[k] = nil
|
||||
end
|
||||
|
||||
if p and v.maximum_productivity then
|
||||
v.maximum_productivity = nil
|
||||
end
|
||||
end
|
||||
|
||||
for _, v in pairs(data.raw['lamp']) do
|
||||
if v.light then
|
||||
v.light.color = {1, 1, 1}
|
||||
end
|
||||
|
||||
if v.light_when_colored then
|
||||
v.light_when_colored.color = {1, 1, 1}
|
||||
end
|
||||
end
|
||||
|
||||
for _, v in pairs(data.raw['land-mine']) do
|
||||
if v.flags then
|
||||
for fk, fv in ipairs(v.flags) do
|
||||
if fv == 'placeable-off-grid' then
|
||||
table.remove(v.flags, fk)
|
||||
break
|
||||
end
|
||||
end
|
||||
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
|
||||
|
||||
@@ -324,6 +324,7 @@ end
|
||||
for _, v in pairs(data.raw.recipe) do
|
||||
v.category = nil
|
||||
v.surface_conditions = nil
|
||||
v.maximum_productivity = nil
|
||||
v.auto_recycle = false
|
||||
|
||||
if items['recipe'][v.name] then
|
||||
@@ -342,6 +343,8 @@ if data.raw['utility-constants'] and data.raw['utility-constants']['default'] an
|
||||
end
|
||||
|
||||
-- TODO: add category to machine instead
|
||||
data.raw['assembling-machine']['captive-biter-spawner'].fixed_recipe = nil
|
||||
|
||||
data.raw['agricultural-tower']['agricultural-tower'].energy_source.emissions_per_minute = { pollution = -1 }
|
||||
data.raw['assembling-machine']['electromagnetic-plant'].effect_receiver = nil
|
||||
data.raw['assembling-machine']['electromagnetic-plant'].crafting_categories = {table.unpack(data.raw['assembling-machine']['assembling-machine-3'].crafting_categories)}
|
||||
@@ -406,6 +409,7 @@ end
|
||||
|
||||
for k, v in pairs(items['item']) do
|
||||
if data.raw.item[k] then
|
||||
data.raw.item[k].auto_recycle = false
|
||||
data.raw.item[k].hidden = v
|
||||
data.raw.item[k].hidden_in_factoriopedia = v
|
||||
end
|
||||
|
||||
@@ -32,6 +32,29 @@ for _, t in pairs({data.raw['cargo-wagon'], data.raw['fluid-wagon']}) do
|
||||
end
|
||||
end
|
||||
|
||||
-- MI C 1 BASE ENTITY
|
||||
for _, v in pairs(data.raw['lamp']) do
|
||||
if v.light and v.light.color then
|
||||
v.light.color = {1, 1, 1}
|
||||
end
|
||||
|
||||
if v.light_when_colored then
|
||||
v.light_when_colored.color = {1, 1, 1}
|
||||
end
|
||||
end
|
||||
|
||||
-- MI C 1 BASE ENTITY
|
||||
for _, v in pairs(data.raw['land-mine']) do
|
||||
if v.flags then
|
||||
for fk, fv in ipairs(v.flags) do
|
||||
if fv == 'placeable-off-grid' then
|
||||
table.remove(v.flags, fk)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- MI C 1 BASE ENTITY
|
||||
for _, v in pairs(data.raw['locomotive']) do
|
||||
v.reversing_power_modifier = 1
|
||||
|
||||
Reference in New Issue
Block a user