mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 12:11:40 +09:00
.
This commit is contained in:
@@ -473,8 +473,7 @@ if mods['space-age'] and ((settings.startup['PHI-SA'].value and settings.startup
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-SA'].value then
|
if settings.startup['PHI-SA'].value and settings.startup['PHI-SA-SPOIL-FREEZE'].value and settings.startup['PHI-SA-SPOIL'].value and mods['space-age'] then
|
||||||
if settings.startup['PHI-SA-SPOIL-FREEZE'].value and settings.startup['PHI-SA-SPOIL'].value and mods['space-age'] then
|
|
||||||
local function spoil_handle(i)
|
local function spoil_handle(i)
|
||||||
item = table.deepcopy(i)
|
item = table.deepcopy(i)
|
||||||
item.name = 'frozen-' .. i.name
|
item.name = 'frozen-' .. i.name
|
||||||
@@ -543,7 +542,7 @@ if settings.startup['PHI-SA'].value then
|
|||||||
spoil_handle(data.raw.tool['agricultural-science-pack'])
|
spoil_handle(data.raw.tool['agricultural-science-pack'])
|
||||||
end
|
end
|
||||||
|
|
||||||
if (not settings.startup['PHI-SA-SPOIL'].value) and mods['space-age'] then
|
if (settings.startup['PHI-SA'].value and (not settings.startup['PHI-SA-SPOIL'].value) or (settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value)) and mods['space-age'] then
|
||||||
local function spoil_handle(i)
|
local function spoil_handle(i)
|
||||||
i.spoil_ticks = nil
|
i.spoil_ticks = nil
|
||||||
i.spoil_result = nil
|
i.spoil_result = nil
|
||||||
@@ -578,7 +577,7 @@ if settings.startup['PHI-SA'].value then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-SA-RESTRICTION'].value and mods['space-age'] then
|
if settings.startup['PHI-SA'].value and settings.startup['PHI-SA-RESTRICTION'].value and mods['space-age'] then
|
||||||
data.raw['character']['character']['mining_categories'] = {'basic-solid', 'hard-solid'}
|
data.raw['character']['character']['mining_categories'] = {'basic-solid', 'hard-solid'}
|
||||||
|
|
||||||
for _, v in pairs({'heavy-oil', 'lava', 'ammoniacal-solution'}) do
|
for _, v in pairs({'heavy-oil', 'lava', 'ammoniacal-solution'}) do
|
||||||
@@ -645,7 +644,7 @@ if settings.startup['PHI-SA'].value then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-SA-QUALITY'].value and mods['quality'] then
|
if settings.startup['PHI-SA'].value and settings.startup['PHI-SA-QUALITY'].value and mods['quality'] then
|
||||||
for _, v in pairs(data.raw.module) do
|
for _, v in pairs(data.raw.module) do
|
||||||
if v.category and v.category == 'quality' then
|
if v.category and v.category == 'quality' then
|
||||||
v.effect.quality = v.effect.quality * settings.startup['PHI-SA-QUALITY'].value / 10
|
v.effect.quality = v.effect.quality * settings.startup['PHI-SA-QUALITY'].value / 10
|
||||||
@@ -656,7 +655,7 @@ if settings.startup['PHI-SA'].value then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-SA-MAX-QUALITY'].value and mods['quality'] then
|
if settings.startup['PHI-SA'].value and settings.startup['PHI-SA-MAX-QUALITY'].value and mods['quality'] then
|
||||||
data.raw.quality.normal.level = 5
|
data.raw.quality.normal.level = 5
|
||||||
data.raw.quality.normal.beacon_power_usage_multiplier = 1 / 6
|
data.raw.quality.normal.beacon_power_usage_multiplier = 1 / 6
|
||||||
data.raw.quality.normal.mining_drill_resource_drain_multiplier = 1 / 6
|
data.raw.quality.normal.mining_drill_resource_drain_multiplier = 1 / 6
|
||||||
@@ -668,14 +667,13 @@ if settings.startup['PHI-SA'].value then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-SA-HEAT-RADIUS'].value and mods['space-age'] then
|
if settings.startup['PHI-SA'].value and settings.startup['PHI-SA-HEAT-RADIUS'].value and mods['space-age'] then
|
||||||
for _, v in pairs({data.raw['heat-pipe'], data.raw['reactor']}) do
|
for _, v in pairs({data.raw['heat-pipe'], data.raw['reactor']}) do
|
||||||
for _, v2 in pairs(v) do
|
for _, v2 in pairs(v) do
|
||||||
v2.heating_radius = settings.startup['PHI-SA-HEAT-RADIUS'].value
|
v2.heating_radius = settings.startup['PHI-SA-HEAT-RADIUS'].value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
if settings.startup['PHI-VP'].value then
|
if settings.startup['PHI-VP'].value then
|
||||||
if mods['space-age'] and settings.startup['PHI-VP-MAIN'].value then
|
if mods['space-age'] and settings.startup['PHI-VP-MAIN'].value then
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "PHI-CL",
|
"name": "PHI-CL",
|
||||||
"version": "3.0.85",
|
"version": "3.0.86",
|
||||||
"factorio_version": "2.0",
|
"factorio_version": "2.0",
|
||||||
"date": "2025-04-07",
|
"date": "2025-04-07",
|
||||||
"title": "Phidias Collection",
|
"title": "Phidias Collection",
|
||||||
|
|||||||
Reference in New Issue
Block a user