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
|
||||||
@@ -541,9 +540,9 @@ if settings.startup['PHI-SA'].value then
|
|||||||
end
|
end
|
||||||
|
|
||||||
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
|
||||||
@@ -576,9 +575,9 @@ if settings.startup['PHI-SA'].value then
|
|||||||
for _, v in pairs({'spoilables', 'spoilables-result', 'spoilables-research'}) do
|
for _, v in pairs({'spoilables', 'spoilables-result', 'spoilables-research'}) do
|
||||||
data.raw['tips-and-tricks-item'][v] = nil
|
data.raw['tips-and-tricks-item'][v] = nil
|
||||||
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
|
||||||
@@ -643,9 +642,9 @@ if settings.startup['PHI-SA'].value then
|
|||||||
v2.percent = (v2.percent > 98 and 98) or v2.percent
|
v2.percent = (v2.percent > 98 and 98) or v2.percent
|
||||||
end
|
end
|
||||||
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
|
||||||
@@ -654,9 +653,9 @@ if settings.startup['PHI-SA'].value then
|
|||||||
v.effect.quality = nil
|
v.effect.quality = nil
|
||||||
end
|
end
|
||||||
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
|
||||||
@@ -666,15 +665,14 @@ if settings.startup['PHI-SA'].value then
|
|||||||
v.extension_speed = v.extension_speed * 2.5
|
v.extension_speed = v.extension_speed * 2.5
|
||||||
v.rotation_speed = v.rotation_speed * 2.5
|
v.rotation_speed = v.rotation_speed * 2.5
|
||||||
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
|
||||||
|
|||||||
@@ -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