mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -728,6 +728,12 @@ if mods then
|
|||||||
|
|
||||||
if mods['Krastorio2'] then
|
if mods['Krastorio2'] then
|
||||||
items['item']['lab'].stage = 2
|
items['item']['lab'].stage = 2
|
||||||
|
items['item']['boiler'].stage = 2
|
||||||
|
items['item']['steam-engine'].stage = 2
|
||||||
|
items['item']['nuclear-reactor'].stage = 2
|
||||||
|
items['item']['heat-pipe'].stage = 2
|
||||||
|
items['item']['heat-exchanger'].stage = 2
|
||||||
|
items['item']['steam-turbine'].stage = 2
|
||||||
|
|
||||||
items['item']['kr-mineral-water-pumpjack'] = {
|
items['item']['kr-mineral-water-pumpjack'] = {
|
||||||
enabled = settings.startup['PHI-MB'].value,
|
enabled = settings.startup['PHI-MB'].value,
|
||||||
|
|||||||
@@ -80,6 +80,14 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TILE'].value th
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if settings.startup['PHI-RS'].value then
|
||||||
|
data.raw['assembling-machine']['electric-filter-furnace'].crafting_categories = {}
|
||||||
|
|
||||||
|
for i=1, #data.raw['furnace']['electric-furnace'].crafting_categories do
|
||||||
|
table.insert(data.raw['assembling-machine']['electric-filter-furnace'].crafting_categories, data.raw['furnace']['electric-furnace'].crafting_categories[i])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
for _, v in pairs(items['item']) do
|
for _, v in pairs(items['item']) do
|
||||||
if (v.stage <= file_stage) and v.enabled and (v.max >= v.min) then
|
if (v.stage <= file_stage) and v.enabled and (v.max >= v.min) then
|
||||||
v.category = 'item'
|
v.category = 'item'
|
||||||
|
|||||||
@@ -87,12 +87,23 @@ if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-PIPE'].value th
|
|||||||
|
|
||||||
for _, t in pairs({data.raw['pipe'], data.raw['pipe-to-ground']}) do
|
for _, t in pairs({data.raw['pipe'], data.raw['pipe-to-ground']}) do
|
||||||
for _, v in pairs(t) do
|
for _, v in pairs(t) do
|
||||||
v.fluid_box.height = v.fluid_box.height * s
|
if v.fluid_box.height then
|
||||||
|
v.fluid_box.height = v.fluid_box.height * s
|
||||||
|
|
||||||
|
else
|
||||||
|
v.fluid_box.height = s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(data.raw['pump']) do
|
for _, v in pairs(data.raw['pump']) do
|
||||||
v.fluid_box.height = v.fluid_box.height * s
|
if v.fluid_box.height then
|
||||||
|
v.fluid_box.height = v.fluid_box.height * s
|
||||||
|
|
||||||
|
else
|
||||||
|
v.fluid_box.height = s
|
||||||
|
end
|
||||||
|
|
||||||
v.pumping_speed = v.pumping_speed * s
|
v.pumping_speed = v.pumping_speed * s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "PHI-CL",
|
"name": "PHI-CL",
|
||||||
"version": "2.0.47",
|
"version": "2.0.50",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"date": "2024-10-05",
|
"date": "2024-10-08",
|
||||||
"title": "Phidias Collection",
|
"title": "Phidias Collection",
|
||||||
"author": "PHIDIAS0303",
|
"author": "PHIDIAS0303",
|
||||||
"contributers": "",
|
"contributers": "",
|
||||||
|
|||||||
@@ -126,8 +126,12 @@ function main.EEE(source, tier)
|
|||||||
end
|
end
|
||||||
|
|
||||||
elseif (source.type == 'generator') then
|
elseif (source.type == 'generator') then
|
||||||
if source.name == 'kr-gas-power-station' then
|
if item.max_power_output then
|
||||||
item.max_power_output = (tonumber(string.match(item.max_power_output, '[%d%.]+')) * (tier - source.min + 2)) .. string.match(item.max_power_output, '%a+')
|
item.max_power_output = (tonumber(string.match(item.max_power_output, '[%d%.]+')) * (tier - source.min + 2)) .. string.match(item.max_power_output, '%a+')
|
||||||
|
end
|
||||||
|
|
||||||
|
if source.name == 'kr-gas-power-station' then
|
||||||
|
item.fluid_usage_per_tick = item.fluid_usage_per_tick * (tier - source.min + 2)
|
||||||
|
|
||||||
else
|
else
|
||||||
item.maximum_temperature = 15 + ((item.maximum_temperature - 15) * tier)
|
item.maximum_temperature = 15 + ((item.maximum_temperature - 15) * tier)
|
||||||
@@ -207,7 +211,7 @@ function main.EEE(source, tier)
|
|||||||
if item.energy_source then
|
if item.energy_source then
|
||||||
if item.energy_source.emissions_per_minute then
|
if item.energy_source.emissions_per_minute then
|
||||||
if source.tech == 'compound-energy' then
|
if source.tech == 'compound-energy' then
|
||||||
if (source.type == 'boiler') then
|
if (source.type == 'boiler') or (source.name == 'kr-gas-power-station') then
|
||||||
item.energy_source.emissions_per_minute = item.energy_source.emissions_per_minute * (tier - source.min + 2)
|
item.energy_source.emissions_per_minute = item.energy_source.emissions_per_minute * (tier - source.min + 2)
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user