mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -83,22 +83,16 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TILE'].value th
|
|||||||
|
|
||||||
data.raw.tile[settings.startup['PHI-CT-TILE-CHOICE'].value].autoplace = {}
|
data.raw.tile[settings.startup['PHI-CT-TILE-CHOICE'].value].autoplace = {}
|
||||||
|
|
||||||
for _, simple in pairs (data.raw['simple-entity']) do
|
for _, t in pairs({data.raw['simple-entity'], data.raw['optimized-decorative'], data.raw['fish']}) do
|
||||||
simple.autoplace = nil
|
for _, e in pairs(t) do
|
||||||
end
|
e.autoplace = nil
|
||||||
|
end
|
||||||
for _, decor in pairs (data.raw['optimized-decorative']) do
|
|
||||||
decor.autoplace = nil
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, fish in pairs (data.raw['fish']) do
|
|
||||||
fish.autoplace = nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local autoplace_controls = {}
|
local autoplace_controls = {}
|
||||||
|
|
||||||
for key, _ in pairs (data.raw['autoplace-control']) do
|
for k, _ in pairs (data.raw['autoplace-control']) do
|
||||||
autoplace_controls[key] = {
|
autoplace_controls[k] = {
|
||||||
size = 'none'
|
size = 'none'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
@@ -116,15 +110,9 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TILE'].value th
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
advanced_settings = {
|
advanced_settings = {
|
||||||
pollution = {
|
pollution = {enabled = false},
|
||||||
enabled = false
|
enemy_evolution = {enabled = false},
|
||||||
},
|
enemy_expansion = {enabled = false}
|
||||||
enemy_evolution = {
|
|
||||||
enabled=false,
|
|
||||||
},
|
|
||||||
enemy_expansion = {
|
|
||||||
enabled=false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -8,21 +8,27 @@ end
|
|||||||
|
|
||||||
if settings.startup['PHI-XW-WATER'].value > 0 then
|
if settings.startup['PHI-XW-WATER'].value > 0 then
|
||||||
if mods['angelsrefining'] then
|
if mods['angelsrefining'] then
|
||||||
data.raw['offshore-pump']['seafloor-pump'].pumping_speed = settings.startup['PHI-XW-WATER'].value * 2
|
local ocfs = 'offshore-pump'
|
||||||
data.raw['offshore-pump']['seafloor-pump'].flags = {'placeable-neutral', 'player-creation', 'filter-directions'}
|
local ofs = 'seafloor-pump'
|
||||||
data.raw['offshore-pump']['seafloor-pump'].adjacent_tile_collision_box = {{-2, -3}, {2, -2}}
|
|
||||||
data.raw['offshore-pump']['seafloor-pump'].adjacent_tile_collision_test = {'ground-tile', 'water-tile', 'object-layer'}
|
data.raw[ocfs][ofs].pumping_speed = settings.startup['PHI-XW-WATER'].value * 2
|
||||||
data.raw['offshore-pump']['seafloor-pump'].adjacent_tile_collision_mask = nil
|
data.raw[ocfs][ofs].flags = {'placeable-neutral', 'player-creation', 'filter-directions'}
|
||||||
data.raw['offshore-pump']['seafloor-pump'].placeable_position_visualization = nil
|
data.raw[ocfs][ofs].adjacent_tile_collision_box = {{-2, -3}, {2, -2}}
|
||||||
|
data.raw[ocfs][ofs].adjacent_tile_collision_test = {'ground-tile', 'water-tile', 'object-layer'}
|
||||||
|
data.raw[ocfs][ofs].adjacent_tile_collision_mask = nil
|
||||||
|
data.raw[ocfs][ofs].placeable_position_visualization = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if mods['exotic-industries'] then
|
if mods['exotic-industries'] then
|
||||||
data.raw['offshore-pump']['ei_gaia-pump'].pumping_speed = settings.startup['PHI-XW-WATER'].value * 20
|
local ocfs = 'offshore-pump'
|
||||||
data.raw['offshore-pump']['ei_gaia-pump'].flags = {'placeable-neutral', 'player-creation'}
|
local ofs = 'ei_gaia-pump'
|
||||||
data.raw['offshore-pump']['ei_gaia-pump'].adjacent_tile_collision_box = {{-0.5, -0.25}, {0.5, 0.25}}
|
|
||||||
data.raw['offshore-pump']['ei_gaia-pump'].adjacent_tile_collision_test = {'ground-tile', 'water-tile', 'object-layer'}
|
data.raw[ocfs][ofs].pumping_speed = settings.startup['PHI-XW-WATER'].value * 20
|
||||||
data.raw['offshore-pump']['ei_gaia-pump'].adjacent_tile_collision_mask = nil
|
data.raw[ocfs][ofs].flags = {'placeable-neutral', 'player-creation'}
|
||||||
data.raw['offshore-pump']['ei_gaia-pump'].placeable_position_visualization = nil
|
data.raw[ocfs][ofs].adjacent_tile_collision_box = {{-0.5, -0.25}, {0.5, 0.25}}
|
||||||
|
data.raw[ocfs][ofs].adjacent_tile_collision_test = {'ground-tile', 'water-tile', 'object-layer'}
|
||||||
|
data.raw[ocfs][ofs].adjacent_tile_collision_mask = nil
|
||||||
|
data.raw[ocfs][ofs].placeable_position_visualization = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -51,13 +51,15 @@ if settings.startup['PHI-EN'].value and settings.startup['PHI-EN-SOLAR-TIER'].va
|
|||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-XW-WATER'].value > 0 then
|
if settings.startup['PHI-XW-WATER'].value > 0 then
|
||||||
data.raw['offshore-pump']['offshore-pump'].pumping_speed = settings.startup['PHI-XW-WATER'].value * 20
|
local ofs = 'offshore-pump'
|
||||||
data.raw['offshore-pump']['offshore-pump'].flags = {'placeable-neutral', 'player-creation'}
|
|
||||||
data.raw['offshore-pump']['offshore-pump'].adjacent_tile_collision_box = {{-0.5, -0.25}, {0.5, 0.25}}
|
data.raw[ofs][ofs].pumping_speed = settings.startup['PHI-XW-WATER'].value * 20
|
||||||
data.raw['offshore-pump']['offshore-pump'].adjacent_tile_collision_test = {'ground-tile', 'water-tile', 'object-layer'}
|
data.raw[ofs][ofs].flags = {'placeable-neutral', 'player-creation'}
|
||||||
data.raw['offshore-pump']['offshore-pump'].adjacent_tile_collision_mask = nil
|
data.raw[ofs][ofs].adjacent_tile_collision_box = {{-0.5, -0.25}, {0.5, 0.25}}
|
||||||
data.raw['offshore-pump']['offshore-pump'].placeable_position_visualization = nil
|
data.raw[ofs][ofs].adjacent_tile_collision_test = {'ground-tile', 'water-tile', 'object-layer'}
|
||||||
data.raw['offshore-pump']['offshore-pump'].se_allow_in_space = true
|
data.raw[ofs][ofs].adjacent_tile_collision_mask = nil
|
||||||
|
data.raw[ofs][ofs].placeable_position_visualization = nil
|
||||||
|
data.raw[ofs][ofs].se_allow_in_space = true
|
||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-OIL'].value then
|
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-OIL'].value then
|
||||||
|
|||||||
Reference in New Issue
Block a user