.
8
PHI-CL/.editorconfig
Normal file
@@ -0,0 +1,8 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = false
|
||||
insert_final_newline = false
|
||||
1597
PHI-CL/.luacheckrc
Normal file
20
PHI-CL/changelog.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.3.0
|
||||
Date: 2023-09-18
|
||||
|
||||
Added:
|
||||
- Compound Nuclear Power
|
||||
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.2.0
|
||||
Date: 2023-05-09
|
||||
|
||||
Added:
|
||||
- Renamed Solar Panel from using like solar-panel-mk2 into solar-panel-2
|
||||
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.1.0
|
||||
Date: 2022-12-01
|
||||
|
||||
Added:
|
||||
- Compound Solar Panel and Accumulator
|
||||
135
PHI-CL/config.lua
Normal file
@@ -0,0 +1,135 @@
|
||||
local items = {
|
||||
['setting'] = {
|
||||
['PHI-EN'] = {
|
||||
type = 'enabled',
|
||||
effect = {'solar-panel', 'accumulator', 'boiler', 'steam-engine', 'nuclear-reactor', 'heat-pipe', 'heat-exchanger', 'steam-turbine'}
|
||||
},
|
||||
['PHI-EN-SOLAR-TIER'] = {
|
||||
type = 'max',
|
||||
effect = {'solar-panel', 'accumulator'}
|
||||
},
|
||||
['PHI-EN-STEAM-TIER'] = {
|
||||
type = 'max',
|
||||
effect = {'boiler', 'steam-engine'}
|
||||
},
|
||||
['PHI-EN-NUCLEAR-TIER'] = {
|
||||
type = 'max',
|
||||
effect = {'nuclear-reactor', 'heat-pipe', 'heat-exchanger', 'steam-turbine'}
|
||||
}
|
||||
},
|
||||
['item'] = {
|
||||
['solar-panel'] = {
|
||||
enabled = true,
|
||||
stage = 1,
|
||||
type = 'solar-panel',
|
||||
name = 'solar-panel',
|
||||
ref_name = 'solar-panel',
|
||||
min = 2,
|
||||
max = 8,
|
||||
base = 60
|
||||
},
|
||||
['accumulator'] = {
|
||||
enabled = true,
|
||||
stage = 1,
|
||||
type = 'accumulator',
|
||||
name = 'accumulator',
|
||||
ref_name = 'accumulator',
|
||||
min = 2,
|
||||
max = 8,
|
||||
base = 5
|
||||
},
|
||||
['boiler'] = {
|
||||
enabled = true,
|
||||
stage = 1,
|
||||
type = 'boiler',
|
||||
name = 'boiler',
|
||||
ref_name = 'boiler',
|
||||
min = 2,
|
||||
max = 5,
|
||||
base = 1800,
|
||||
temp = 150,
|
||||
fluid = 1
|
||||
},
|
||||
['steam-engine'] = {
|
||||
enabled = true,
|
||||
stage = 1,
|
||||
type = 'generator',
|
||||
name = 'steam-engine',
|
||||
ref_name = 'steam-engine',
|
||||
min = 2,
|
||||
max = 5,
|
||||
base = 150,
|
||||
fluid = 1 / 2
|
||||
},
|
||||
['nuclear-reactor'] = {
|
||||
enabled = true,
|
||||
stage = 1,
|
||||
type = 'reactor',
|
||||
name = 'nuclear-reactor',
|
||||
ref_name = 'nuclear-reactor',
|
||||
min = 2,
|
||||
max = 5,
|
||||
base = 40,
|
||||
bonus = 1,
|
||||
temp = 500
|
||||
},
|
||||
['heat-pipe'] = {
|
||||
enabled = true,
|
||||
stage = 1,
|
||||
type = 'heat-pipe',
|
||||
name = 'heat-pipe',
|
||||
ref_name = 'heat-pipe',
|
||||
min = 2,
|
||||
max = 5,
|
||||
temp = 500
|
||||
},
|
||||
['heat-exchanger'] = {
|
||||
enabled = true,
|
||||
stage = 1,
|
||||
type = 'boiler',
|
||||
name = 'heat-exchanger',
|
||||
ref_name = 'heat-exchanger',
|
||||
min = 2,
|
||||
max = 5,
|
||||
base = 10000,
|
||||
temp = 485,
|
||||
fluid = 103 / 60
|
||||
},
|
||||
['steam-turbine'] = {
|
||||
enabled = true,
|
||||
stage = 1,
|
||||
type = 'generator',
|
||||
name = 'steam-turbine',
|
||||
ref_name = 'steam-turbine',
|
||||
min = 2,
|
||||
max = 5,
|
||||
base = 485,
|
||||
fluid = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if mods ~= nil then
|
||||
if mods['Krastorio2'] then
|
||||
items['item']['solar-panel'].base = 100
|
||||
items['item']['accumulator'].base = 10
|
||||
items['item']['boiler'].base = 1500
|
||||
items['item']['boiler'].temp = 150
|
||||
items['item']['boiler'].fluid = 1 / 3
|
||||
items['item']['steam-engine'].fluid = 1 / 6
|
||||
items['item']['nuclear-reactor'].base = 250
|
||||
items['item']['nuclear-reactor'].bonus = 0.25
|
||||
items['item']['heat-exchanger'].base = 50000
|
||||
items['item']['heat-exchanger'].temp = 400
|
||||
items['item']['heat-exchanger'].fluid = 25 / 6
|
||||
items['item']['steam-turbine'].base = 400
|
||||
items['item']['steam-turbine'].fluid = 5 / 6
|
||||
items['item']['heat-pipe'].temp = 400
|
||||
|
||||
elseif mods['space-exploration'] then
|
||||
items['item']['solar-panel'].base = 60
|
||||
items['item']['accumulator'].base = 5
|
||||
end
|
||||
end
|
||||
|
||||
return items
|
||||
253
PHI-CL/data-updates.lua
Normal file
@@ -0,0 +1,253 @@
|
||||
local items = require 'config'
|
||||
|
||||
-- entity
|
||||
local function EE(source, tier)
|
||||
local item = table.deepcopy(data.raw[source.type][source.ref_name])
|
||||
|
||||
item.name = source.name .. '-' .. tier
|
||||
item.minable.result = source.name .. '-' .. tier
|
||||
item.max_health = item.max_health * (2 ^ (tier - source.min + 1))
|
||||
|
||||
if (source.type == 'accumulator') then
|
||||
item.energy_source.buffer_capacity = (source.base * 4 ^ (tier - source.min + 1)) .. 'MJ'
|
||||
item.energy_source.input_flow_limit = (source.base * 60 * (4 ^ (tier - source.min + 1))) .. 'kW'
|
||||
item.energy_source.output_flow_limit = (source.base * 60 * (4 ^ (tier - source.min + 1))) .. 'kW'
|
||||
|
||||
--[[
|
||||
item.charge_animation.layers[1].layers[1].filename = item.picture.layers[1].filename
|
||||
item.charge_animation.layers[1].layers[1].tint = {r = 1, g = 1, b = 1, a = 1}
|
||||
item.charge_animation.layers[1].layers[1].hr_version.filename = item.picture.layers[1].hr_version.filename
|
||||
item.charge_animation.layers[1].layers[1].hr_version.tint = {r = 1, g = 1, b = 1, a = 1}
|
||||
item.discharge_animation.layers[1].layers[1].filename = item.picture.layers[1].filename
|
||||
item.discharge_animation.layers[1].layers[1].tint = {r = 1, g = 1, b = 1, a = 1}
|
||||
item.discharge_animation.layers[1].layers[1].hr_version.filename = item.picture.layers[1].hr_version.filename
|
||||
item.discharge_animation.layers[1].layers[1].hr_version.tint = {r = 1, g = 1, b = 1, a = 1}
|
||||
]]
|
||||
|
||||
elseif (source.type == 'solar-panel') then
|
||||
item.production = (source.base * (4 ^ (tier - source.min + 1))) .. 'kW'
|
||||
|
||||
elseif (source.type == 'boiler') then
|
||||
item.fluid_box.height = 4
|
||||
item.output_fluid_box.height = 4
|
||||
item.output_fluid_box.base_level = 5
|
||||
item.energy_consumption = source.base * tier .. 'kW'
|
||||
item.target_temperature = 15 + (source.temp * tier)
|
||||
item.fluid_usage_per_tick = source.fluid
|
||||
|
||||
if (source.name == 'heat-exchanger') then
|
||||
item.energy_source.min_working_temperature = 15 + (source.temp * tier)
|
||||
item.energy_source.max_temperature = source.temp * (tier + 1)
|
||||
item.energy_source.max_transfer = 2000 + (2000 * tier) .. 'MW'
|
||||
end
|
||||
|
||||
elseif (source.type == 'generator') then
|
||||
item.fluid_box.height = 4
|
||||
item.maximum_temperature = 15 + (source.base * tier)
|
||||
item.fluid_usage_per_tick = source.fluid
|
||||
|
||||
elseif (source.type == 'reactor') then
|
||||
item.consumption = source.base * tier .. 'MW'
|
||||
item.neighbour_bonus = source.bonus
|
||||
item.heat_buffer.max_temperature = source.temp * (tier + 1)
|
||||
item.heat_buffer.max_transfer = source.temp * (tier + 1) * 0.02 .. 'GW'
|
||||
|
||||
elseif (source.type == 'heat-pipe') then
|
||||
item.heat_buffer.max_temperature = source.temp * (tier + 1)
|
||||
item.heat_buffer.max_transfer = source.temp * (tier + 1) * 0.01 .. 'GW'
|
||||
|
||||
elseif (source.type == 'lab') then
|
||||
item.researching_speed = item.researching_speed * (2 ^ (tier - source.min + 1))
|
||||
|
||||
elseif (source.type == 'mining-drill') then
|
||||
item.mining_speed = item.mining_speed * (2 ^ (tier - source.min + 1))
|
||||
|
||||
else
|
||||
if item.crafting_speed then
|
||||
item.crafting_speed = item.crafting_speed * (2 ^ (tier - source.min + 1))
|
||||
end
|
||||
|
||||
if item.energy_source.emissions_per_minute then
|
||||
item.energy_source.emissions_per_minute = item.energy_source.emissions_per_minute * (2 ^ (tier - source.min + 1))
|
||||
end
|
||||
end
|
||||
|
||||
if item.fluid_boxes then
|
||||
for k, _ in pairs(item.fluid_boxes) do
|
||||
if (item.fluid_boxes[k] and (not item.fluid_boxes[k])) then
|
||||
if item.fluid_boxes[k].production_type then
|
||||
item.fluid_boxes[k].height = 4
|
||||
|
||||
if item.fluid_boxes[k].base_level then
|
||||
item.fluid_boxes[k].base_level = item.fluid_boxes[k].base_level * 4
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if item.energy_usage then
|
||||
item.energy_usage = tonumber(string.match(item.energy_usage, '%d+')) * (2 ^ (tier - source.min + 1)) .. 'kW'
|
||||
end
|
||||
|
||||
-- item.animation.layers[1].filename = graphics_location .. source .. '-e.png'
|
||||
-- item.animation.layers[1].hr_version.filename = graphics_location .. source ..'-eh.png'
|
||||
-- item.icon = graphics_location .. source .. '-i.png'
|
||||
-- item.icon_size = 64
|
||||
-- item.icon_mipmaps = 4
|
||||
|
||||
if (tier < source.max) then
|
||||
item.next_upgrade = source.name .. '-' .. (tier + 1)
|
||||
end
|
||||
|
||||
data:extend({item})
|
||||
end
|
||||
|
||||
-- item
|
||||
local function EI(source, tier)
|
||||
local item = table.deepcopy(data.raw.item[source.ref_name])
|
||||
|
||||
item.name = source.name .. '-' .. tier
|
||||
item.place_result = source.name .. '-' .. tier
|
||||
|
||||
-- item.subgroup = 'energy'
|
||||
-- item.icons = {{icon = graphics_location .. source.name .. '-i.png', icon_mipmaps = 4, icon_size = 64}}
|
||||
|
||||
item.order = item.order .. tier
|
||||
data:extend({item})
|
||||
end
|
||||
|
||||
-- recipe
|
||||
local function ER(source, tier)
|
||||
local ingredient_name = source.name
|
||||
|
||||
if tier > 2 then
|
||||
ingredient_name = ingredient_name .. '-' .. (tier - 1)
|
||||
end
|
||||
|
||||
if (source.type == 'solar-panel') or (source.type == 'accumulator') then
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = source.name .. '-' .. tier,
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{ingredient_name, 4}},
|
||||
result = source.name .. '-' .. tier,
|
||||
}})
|
||||
|
||||
else
|
||||
if ((source.type == 'boiler') or (source.type == 'steam-engine') or (source.type == 'nuclear-reactor') or (source.type == 'heat-pipe') or (source.type == 'heat-exchanger') or (source.type == 'steam-turbine')) and (tier == 2) then
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = source.name .. '-' .. tier,
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{ingredient_name, 1}, {source.name, 1}},
|
||||
result = source.name .. '-' .. tier,
|
||||
}})
|
||||
|
||||
else
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = source.name .. '-' .. tier,
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{ingredient_name, 2}},
|
||||
result = source.name .. '-' .. tier,
|
||||
}})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- technology
|
||||
local function ET(source, tier)
|
||||
if (source.type == 'solar-panel') or (source.type == 'accumulator') or (source.type == 'boiler') or (source.type == 'steam-engine') or (source.type == 'nuclear-reactor') or (source.type == 'heat-pipe') or (source.type == 'heat-exchanger') or (source.type == 'steam-turbine') then
|
||||
if not data.raw.technology['compound-energy-' .. (tier - 1)] then
|
||||
local prereq
|
||||
|
||||
if (tier == 2) then
|
||||
prereq = {'solar-energy', 'advanced-electronics', 'electric-energy-accumulators'}
|
||||
|
||||
else
|
||||
prereq = {'compound-energy-' .. (tier - 2)}
|
||||
end
|
||||
|
||||
local item = {
|
||||
type = 'technology',
|
||||
name = 'compound-energy-' .. (tier - 1),
|
||||
icon_size = 256,
|
||||
icon = '__base__/graphics/technology/solar-energy.png',
|
||||
effects = {
|
||||
{type='unlock-recipe', recipe=source.name .. '-' .. tier}
|
||||
},
|
||||
prerequisites = prereq,
|
||||
unit = {
|
||||
count = 100,
|
||||
ingredients = {
|
||||
{'automation-science-pack', 2},
|
||||
{'logistic-science-pack', 2}
|
||||
},
|
||||
time = 120
|
||||
},
|
||||
order = 'a-h-' .. alpha_order[tier + 1]
|
||||
}
|
||||
|
||||
data:extend({item})
|
||||
else
|
||||
if tier <= source.max then
|
||||
table.insert(data.raw.technology['compound-energy-' .. (tier - 1)].effects, {type='unlock-recipe', recipe=source.name .. '-' .. tier})
|
||||
end
|
||||
end
|
||||
|
||||
else
|
||||
table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name .. '-' .. tier})
|
||||
end
|
||||
end
|
||||
|
||||
-- fast replace group
|
||||
local function EL(source)
|
||||
if not data.raw[source.type][source.ref_name].fast_replaceable_group then
|
||||
data.raw[source.type][source.ref_name].fast_replaceable_group = source.type
|
||||
end
|
||||
|
||||
if source.max > 2 then
|
||||
data.raw[source.type][source.name .. '-' .. 2].fast_replaceable_group = data.raw[source.type][source.ref_name].fast_replaceable_group
|
||||
end
|
||||
|
||||
if source.max > source.min then
|
||||
for j=source.min + 1, source.max do
|
||||
data.raw[source.type][source.name .. '-' .. j].fast_replaceable_group = data.raw[source.type][source.name .. '-' .. (j - 1)].fast_replaceable_group
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for k, v in pairs(items['setting']) do
|
||||
for k2=1, #v.effect do
|
||||
if items[v.effect[k2]] ~= nil then
|
||||
if settings.startup[k].value < items[v.effect[k2]].min then
|
||||
items[v.effect[k2]].enabled = false
|
||||
end
|
||||
|
||||
items[v.effect[k2]][v.type] = settings.startup[k].value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for _, v in pairs(items['item']) do
|
||||
if v.enabled then
|
||||
if v.stage == 2 then
|
||||
for j=v.min, v.max, 1 do
|
||||
EE(v, j)
|
||||
EI(v, j)
|
||||
ER(v, j)
|
||||
ET(v, j)
|
||||
end
|
||||
|
||||
EL(v)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if items['nuclear-reactor'].enabled then
|
||||
data.raw['fluid']['steam'].max_temperature = 5000
|
||||
end
|
||||
251
PHI-CL/data.lua
Normal file
@@ -0,0 +1,251 @@
|
||||
local alpha_order = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'}
|
||||
-- local graphics_location = '__PHI-EN__/graphics/'
|
||||
local items = require 'config'
|
||||
|
||||
-- entity
|
||||
local function EE(source, tier)
|
||||
local item = table.deepcopy(data.raw[source.type][source.ref_name])
|
||||
|
||||
item.name = source.name .. '-' .. tier
|
||||
item.minable.result = source.name .. '-' .. tier
|
||||
item.max_health = item.max_health * (2 ^ (tier - source.min + 1))
|
||||
|
||||
if (source.type == 'accumulator') then
|
||||
item.energy_source.buffer_capacity = (source.base * 4 ^ (tier - source.min + 1)) .. 'MJ'
|
||||
item.energy_source.input_flow_limit = (source.base * 60 * (4 ^ (tier - source.min + 1))) .. 'kW'
|
||||
item.energy_source.output_flow_limit = (source.base * 60 * (4 ^ (tier - source.min + 1))) .. 'kW'
|
||||
|
||||
--[[
|
||||
item.charge_animation.layers[1].layers[1].filename = item.picture.layers[1].filename
|
||||
item.charge_animation.layers[1].layers[1].tint = {r = 1, g = 1, b = 1, a = 1}
|
||||
item.charge_animation.layers[1].layers[1].hr_version.filename = item.picture.layers[1].hr_version.filename
|
||||
item.charge_animation.layers[1].layers[1].hr_version.tint = {r = 1, g = 1, b = 1, a = 1}
|
||||
item.discharge_animation.layers[1].layers[1].filename = item.picture.layers[1].filename
|
||||
item.discharge_animation.layers[1].layers[1].tint = {r = 1, g = 1, b = 1, a = 1}
|
||||
item.discharge_animation.layers[1].layers[1].hr_version.filename = item.picture.layers[1].hr_version.filename
|
||||
item.discharge_animation.layers[1].layers[1].hr_version.tint = {r = 1, g = 1, b = 1, a = 1}
|
||||
]]
|
||||
|
||||
elseif (source.type == 'solar-panel') then
|
||||
item.production = (source.base * (4 ^ (tier - source.min + 1))) .. 'kW'
|
||||
|
||||
elseif (source.type == 'boiler') then
|
||||
item.fluid_box.height = 4
|
||||
item.output_fluid_box.height = 4
|
||||
item.output_fluid_box.base_level = 5
|
||||
item.energy_consumption = source.base * tier .. 'kW'
|
||||
item.target_temperature = 15 + (source.temp * tier)
|
||||
item.fluid_usage_per_tick = source.fluid
|
||||
|
||||
if (source.name == 'heat-exchanger') then
|
||||
item.energy_source.min_working_temperature = 15 + (source.temp * tier)
|
||||
item.energy_source.max_temperature = source.temp * (tier + 1)
|
||||
item.energy_source.max_transfer = 2000 + (2000 * tier) .. 'MW'
|
||||
end
|
||||
|
||||
elseif (source.type == 'generator') then
|
||||
item.fluid_box.height = 4
|
||||
item.maximum_temperature = 15 + (source.base * tier)
|
||||
item.fluid_usage_per_tick = source.fluid
|
||||
|
||||
elseif (source.type == 'reactor') then
|
||||
item.consumption = source.base * tier .. 'MW'
|
||||
item.neighbour_bonus = source.bonus
|
||||
item.heat_buffer.max_temperature = source.temp * (tier + 1)
|
||||
item.heat_buffer.max_transfer = source.temp * (tier + 1) * 0.02 .. 'GW'
|
||||
|
||||
elseif (source.type == 'heat-pipe') then
|
||||
item.heat_buffer.max_temperature = source.temp * (tier + 1)
|
||||
item.heat_buffer.max_transfer = source.temp * (tier + 1) * 0.01 .. 'GW'
|
||||
|
||||
elseif (source.type == 'lab') then
|
||||
item.researching_speed = item.researching_speed * (2 ^ (tier - source.min + 1))
|
||||
|
||||
elseif (source.type == 'mining-drill') then
|
||||
item.mining_speed = item.mining_speed * (2 ^ (tier - source.min + 1))
|
||||
|
||||
else
|
||||
if item.crafting_speed then
|
||||
item.crafting_speed = item.crafting_speed * (2 ^ (tier - source.min + 1))
|
||||
end
|
||||
|
||||
if item.energy_source.emissions_per_minute then
|
||||
item.energy_source.emissions_per_minute = item.energy_source.emissions_per_minute * (2 ^ (tier - source.min + 1))
|
||||
end
|
||||
end
|
||||
|
||||
if item.fluid_boxes then
|
||||
for k, _ in pairs(item.fluid_boxes) do
|
||||
if (item.fluid_boxes[k] and (not item.fluid_boxes[k])) then
|
||||
if item.fluid_boxes[k].production_type then
|
||||
item.fluid_boxes[k].height = 4
|
||||
|
||||
if item.fluid_boxes[k].base_level then
|
||||
item.fluid_boxes[k].base_level = item.fluid_boxes[k].base_level * 4
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if item.energy_usage then
|
||||
item.energy_usage = tonumber(string.match(item.energy_usage, '%d+')) * (2 ^ (tier - source.min + 1)) .. 'kW'
|
||||
end
|
||||
|
||||
-- item.animation.layers[1].filename = graphics_location .. source .. '-e.png'
|
||||
-- item.animation.layers[1].hr_version.filename = graphics_location .. source ..'-eh.png'
|
||||
-- item.icon = graphics_location .. source .. '-i.png'
|
||||
-- item.icon_size = 64
|
||||
-- item.icon_mipmaps = 4
|
||||
|
||||
if (tier < source.max) then
|
||||
item.next_upgrade = source.name .. '-' .. (tier + 1)
|
||||
end
|
||||
|
||||
data:extend({item})
|
||||
end
|
||||
|
||||
-- item
|
||||
local function EI(source, tier)
|
||||
local item = table.deepcopy(data.raw.item[source.ref_name])
|
||||
|
||||
item.name = source.name .. '-' .. tier
|
||||
item.place_result = source.name .. '-' .. tier
|
||||
|
||||
-- item.subgroup = 'energy'
|
||||
-- item.icons = {{icon = graphics_location .. source.name .. '-i.png', icon_mipmaps = 4, icon_size = 64}}
|
||||
|
||||
item.order = item.order .. tier
|
||||
data:extend({item})
|
||||
end
|
||||
|
||||
-- recipe
|
||||
local function ER(source, tier)
|
||||
local ingredient_name = source.name
|
||||
|
||||
if tier > 2 then
|
||||
ingredient_name = ingredient_name .. '-' .. (tier - 1)
|
||||
end
|
||||
|
||||
if (source.type == 'solar-panel') or (source.type == 'accumulator') then
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = source.name .. '-' .. tier,
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{ingredient_name, 4}},
|
||||
result = source.name .. '-' .. tier,
|
||||
}})
|
||||
|
||||
else
|
||||
if ((source.type == 'boiler') or (source.type == 'steam-engine') or (source.type == 'nuclear-reactor') or (source.type == 'heat-pipe') or (source.type == 'heat-exchanger') or (source.type == 'steam-turbine')) and (tier == 2) then
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = source.name .. '-' .. tier,
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{ingredient_name, 1}, {source.name, 1}},
|
||||
result = source.name .. '-' .. tier,
|
||||
}})
|
||||
|
||||
else
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = source.name .. '-' .. tier,
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{ingredient_name, 2}},
|
||||
result = source.name .. '-' .. tier,
|
||||
}})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- technology
|
||||
local function ET(source, tier)
|
||||
if (source.type == 'solar-panel') or (source.type == 'accumulator') or (source.type == 'boiler') or (source.type == 'steam-engine') or (source.type == 'nuclear-reactor') or (source.type == 'heat-pipe') or (source.type == 'heat-exchanger') or (source.type == 'steam-turbine') then
|
||||
if not data.raw.technology['compound-energy-' .. (tier - 1)] then
|
||||
local prereq
|
||||
|
||||
if (tier == 2) then
|
||||
prereq = {'solar-energy', 'advanced-electronics', 'electric-energy-accumulators'}
|
||||
|
||||
else
|
||||
prereq = {'compound-energy-' .. (tier - 2)}
|
||||
end
|
||||
|
||||
local item = {
|
||||
type = 'technology',
|
||||
name = 'compound-energy-' .. (tier - 1),
|
||||
icon_size = 256,
|
||||
icon = '__base__/graphics/technology/solar-energy.png',
|
||||
effects = {
|
||||
{type='unlock-recipe', recipe=source.name .. '-' .. tier}
|
||||
},
|
||||
prerequisites = prereq,
|
||||
unit = {
|
||||
count = 100,
|
||||
ingredients = {
|
||||
{'automation-science-pack', 2},
|
||||
{'logistic-science-pack', 2}
|
||||
},
|
||||
time = 120
|
||||
},
|
||||
order = 'a-h-' .. alpha_order[tier + 1]
|
||||
}
|
||||
|
||||
data:extend({item})
|
||||
else
|
||||
if tier <= source.max then
|
||||
table.insert(data.raw.technology['compound-energy-' .. (tier - 1)].effects, {type='unlock-recipe', recipe=source.name .. '-' .. tier})
|
||||
end
|
||||
end
|
||||
|
||||
else
|
||||
table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name .. '-' .. tier})
|
||||
end
|
||||
end
|
||||
|
||||
-- fast replace group
|
||||
local function EL(source)
|
||||
if not data.raw[source.type][source.ref_name].fast_replaceable_group then
|
||||
data.raw[source.type][source.ref_name].fast_replaceable_group = source.type
|
||||
end
|
||||
|
||||
if source.max > 2 then
|
||||
data.raw[source.type][source.name .. '-' .. 2].fast_replaceable_group = data.raw[source.type][source.ref_name].fast_replaceable_group
|
||||
end
|
||||
|
||||
if source.max > source.min then
|
||||
for j=source.min + 1, source.max do
|
||||
data.raw[source.type][source.name .. '-' .. j].fast_replaceable_group = data.raw[source.type][source.name .. '-' .. (j - 1)].fast_replaceable_group
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for k, v in pairs(items['setting']) do
|
||||
for k2=1, #v.effect do
|
||||
if items[v.effect[k2]] ~= nil then
|
||||
if settings.startup[k].value < items[v.effect[k2]].min then
|
||||
items[v.effect[k2]].enabled = false
|
||||
end
|
||||
|
||||
items[v.effect[k2]][v.type] = settings.startup[k].value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for _, v in pairs(items['item']) do
|
||||
if v.enabled then
|
||||
if v.stage == 1 then
|
||||
for j=v.min, v.max, 1 do
|
||||
EE(v, j)
|
||||
EI(v, j)
|
||||
ER(v, j)
|
||||
ET(v, j)
|
||||
end
|
||||
|
||||
EL(v)
|
||||
end
|
||||
end
|
||||
end
|
||||
BIN
PHI-CL/graphics/accumulator-e.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
PHI-CL/graphics/accumulator-eh.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
PHI-CL/graphics/accumulator-i.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
PHI-CL/graphics/solar-panel-e.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
PHI-CL/graphics/solar-panel-eh.png
Normal file
|
After Width: | Height: | Size: 101 KiB |
BIN
PHI-CL/graphics/solar-panel-i.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
16
PHI-CL/info.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "PHI-CL",
|
||||
"version": "2.0.0",
|
||||
"factorio_version": "1.1",
|
||||
"date": "2024-07-01",
|
||||
"title": "Phidias Collection",
|
||||
"author": "PHIDIAS0303",
|
||||
"contributers": "",
|
||||
"homepage": "",
|
||||
"description": "Additional compound entities and items. Including power item like solar panel, accumulator.",
|
||||
"dependencies": [
|
||||
"base >= 1.1.0",
|
||||
"? Krastorio2 >= 1.3.0",
|
||||
"? space-exploration >= 0.6.0"
|
||||
]
|
||||
}
|
||||
165
PHI-CL/locale/en/locale.cfg
Normal file
@@ -0,0 +1,165 @@
|
||||
[item-name]
|
||||
accumulator-2=Accumulator 2
|
||||
accumulator-3=Accumulator 3
|
||||
accumulator-4=Accumulator 4
|
||||
accumulator-5=Accumulator 5
|
||||
accumulator-6=Accumulator 6
|
||||
accumulator-7=Accumulator 7
|
||||
accumulator-8=Accumulator 8
|
||||
|
||||
solar-panel-2=Solar Panel 2
|
||||
solar-panel-3=Solar Panel 3
|
||||
solar-panel-4=Solar Panel 4
|
||||
solar-panel-5=Solar Panel 5
|
||||
solar-panel-6=Solar Panel 6
|
||||
solar-panel-7=Solar Panel 7
|
||||
solar-panel-8=Solar Panel 8
|
||||
|
||||
boiler-2=Boiler 2
|
||||
boiler-3=Boiler 3
|
||||
boiler-4=Boiler 4
|
||||
boiler-5=Boiler 5
|
||||
|
||||
steam-engine-2=Steam engine 2
|
||||
steam-engine-3=Steam engine 3
|
||||
steam-engine-4=Steam engine 4
|
||||
steam-engine-5=Steam engine 5
|
||||
|
||||
nuclear-reactor-2=Nuclear reactor 2
|
||||
nuclear-reactor-3=Nuclear reactor 3
|
||||
nuclear-reactor-4=Nuclear reactor 4
|
||||
nuclear-reactor-5=Nuclear reactor 5
|
||||
|
||||
heat-pipe-2=Heat pipe 2
|
||||
heat-pipe-3=Heat pipe 3
|
||||
heat-pipe-4=Heat pipe 4
|
||||
heat-pipe-5=Heat pipe 5
|
||||
|
||||
heat-exchanger-2=Heat exchanger 2
|
||||
heat-exchanger-3=Heat exchanger 3
|
||||
heat-exchanger-4=Heat exchanger 4
|
||||
heat-exchanger-5=Heat exchanger 5
|
||||
|
||||
steam-turbine-2=Steam turbine 2
|
||||
steam-turbine-3=Steam turbine 3
|
||||
steam-turbine-4=Steam turbine 4
|
||||
steam-turbine-5=Steam turbine 5
|
||||
|
||||
[entity-name]
|
||||
accumulator-2=Accumulator 2
|
||||
accumulator-3=Accumulator 3
|
||||
accumulator-4=Accumulator 4
|
||||
accumulator-5=Accumulator 5
|
||||
accumulator-6=Accumulator 6
|
||||
accumulator-7=Accumulator 7
|
||||
accumulator-8=Accumulator 8
|
||||
|
||||
solar-panel-2=Solar Panel 2
|
||||
solar-panel-3=Solar Panel 3
|
||||
solar-panel-4=Solar Panel 4
|
||||
solar-panel-5=Solar Panel 5
|
||||
solar-panel-6=Solar Panel 6
|
||||
solar-panel-7=Solar Panel 7
|
||||
solar-panel-8=Solar Panel 8
|
||||
|
||||
boiler-2=Boiler 2
|
||||
boiler-3=Boiler 3
|
||||
boiler-4=Boiler 4
|
||||
boiler-5=Boiler 5
|
||||
|
||||
steam-engine-2=Steam engine 2
|
||||
steam-engine-3=Steam engine 3
|
||||
steam-engine-4=Steam engine 4
|
||||
steam-engine-5=Steam engine 5
|
||||
|
||||
nuclear-reactor-2=Nuclear reactor 2
|
||||
nuclear-reactor-3=Nuclear reactor 3
|
||||
nuclear-reactor-4=Nuclear reactor 4
|
||||
nuclear-reactor-5=Nuclear reactor 5
|
||||
|
||||
heat-pipe-2=Heat pipe 2
|
||||
heat-pipe-3=Heat pipe 3
|
||||
heat-pipe-4=Heat pipe 4
|
||||
heat-pipe-5=Heat pipe 5
|
||||
|
||||
heat-exchanger-2=Heat exchanger 2
|
||||
heat-exchanger-3=Heat exchanger 3
|
||||
heat-exchanger-4=Heat exchanger 4
|
||||
heat-exchanger-5=Heat exchanger 5
|
||||
|
||||
steam-turbine-2=Steam turbine 2
|
||||
steam-turbine-3=Steam turbine 3
|
||||
steam-turbine-4=Steam turbine 4
|
||||
steam-turbine-5=Steam turbine 5
|
||||
|
||||
[entity-description]
|
||||
accumulator-2=Stores a limited amount of energy when available production exceeds demand, and releases it in the opposite case.
|
||||
accumulator-3=Stores a limited amount of energy when available production exceeds demand, and releases it in the opposite case.
|
||||
accumulator-4=Stores a limited amount of energy when available production exceeds demand, and releases it in the opposite case.
|
||||
accumulator-5=Stores a limited amount of energy when available production exceeds demand, and releases it in the opposite case.
|
||||
accumulator-6=Stores a limited amount of energy when available production exceeds demand, and releases it in the opposite case.
|
||||
accumulator-7=Stores a limited amount of energy when available production exceeds demand, and releases it in the opposite case.
|
||||
accumulator-8=Stores a limited amount of energy when available production exceeds demand, and releases it in the opposite case.
|
||||
|
||||
solar-panel-2=During daytime it produces 100% of the power output which drops to 0% at night.
|
||||
solar-panel-3=During daytime it produces 100% of the power output which drops to 0% at night.
|
||||
solar-panel-4=During daytime it produces 100% of the power output which drops to 0% at night.
|
||||
solar-panel-5=During daytime it produces 100% of the power output which drops to 0% at night.
|
||||
solar-panel-6=During daytime it produces 100% of the power output which drops to 0% at night.
|
||||
solar-panel-7=During daytime it produces 100% of the power output which drops to 0% at night.
|
||||
solar-panel-8=During daytime it produces 100% of the power output which drops to 0% at night.
|
||||
|
||||
boiler-2=Burns fuel to turn water into steam.
|
||||
boiler-3=Burns fuel to turn water into steam.
|
||||
boiler-4=Burns fuel to turn water into steam.
|
||||
boiler-5=Burns fuel to turn water into steam.
|
||||
|
||||
steam-engine-2=Consumes steam to create electric energy.
|
||||
steam-engine-3=Consumes steam to create electric energy.
|
||||
steam-engine-4=Consumes steam to create electric energy.
|
||||
steam-engine-5=Consumes steam to create electric energy.
|
||||
|
||||
nuclear-reactor-2=Uses uranium fuel cells to generate heat. The heat output increases when built next to other reactors.
|
||||
nuclear-reactor-3=Uses uranium fuel cells to generate heat. The heat output increases when built next to other reactors.
|
||||
nuclear-reactor-4=Uses uranium fuel cells to generate heat. The heat output increases when built next to other reactors.
|
||||
nuclear-reactor-5=Uses uranium fuel cells to generate heat. The heat output increases when built next to other reactors.
|
||||
|
||||
heat-exchanger-2=Uses heat energy to turn water into steam.
|
||||
heat-exchanger-3=Uses heat energy to turn water into steam.
|
||||
heat-exchanger-4=Uses heat energy to turn water into steam.
|
||||
heat-exchanger-5=Uses heat energy to turn water into steam.
|
||||
|
||||
steam-turbine-2=Consumes steam to create electric energy.
|
||||
steam-turbine-3=Consumes steam to create electric energy.
|
||||
steam-turbine-4=Consumes steam to create electric energy.
|
||||
steam-turbine-5=Consumes steam to create electric energy.
|
||||
|
||||
[technology-name]
|
||||
compound-energy=Compound Energy
|
||||
compound-energy-1=Compound Energy
|
||||
compound-energy-2=Compound Energy 2
|
||||
compound-energy-3=Compound Energy 3
|
||||
compound-energy-4=Compound Energy 4
|
||||
compound-energy-5=Compound Energy 5
|
||||
compound-energy-6=Compound Energy 6
|
||||
compound-energy-7=Compound Energy 7
|
||||
|
||||
[technology-description]
|
||||
compound-energy=Source of free electric energy, but useless at night.
|
||||
compound-energy-1=Source of free electric energy, but useless at night.
|
||||
compound-energy-2=Source of free electric energy, but useless at night.
|
||||
compound-energy-3=Source of free electric energy, but useless at night.
|
||||
compound-energy-4=Source of free electric energy, but useless at night.
|
||||
compound-energy-5=Source of free electric energy, but useless at night.
|
||||
compound-energy-6=Source of free electric energy, but useless at night.
|
||||
compound-energy-7=Source of free electric energy, but useless at night.
|
||||
|
||||
[mod-setting-name]
|
||||
PHI-EN-SOLAR-TIER=Solar Panel
|
||||
PHI-EN-STEAM-TIER=Steam engine
|
||||
PHI-EN-NUCLEAR-TIER=Nuclear reactor
|
||||
|
||||
[mod-setting-description]
|
||||
PHI-EN-SOLAR-TIER=Default 8 ; Disable 1
|
||||
PHI-EN-STEAM-TIER=Default 5 ; Disable 1
|
||||
PHI-EN-NUCLEAR-TIER=Default 5 ; Disable 1
|
||||
165
PHI-CL/locale/ja/locale.cfg
Normal file
@@ -0,0 +1,165 @@
|
||||
[item-name]
|
||||
accumulator-2=蓄電池 2
|
||||
accumulator-3=蓄電池 3
|
||||
accumulator-4=蓄電池 4
|
||||
accumulator-5=蓄電池 5
|
||||
accumulator-6=蓄電池 6
|
||||
accumulator-7=蓄電池 7
|
||||
accumulator-8=蓄電池 8
|
||||
|
||||
solar-panel-2=ソーラーパネル 2
|
||||
solar-panel-3=ソーラーパネル 3
|
||||
solar-panel-4=ソーラーパネル 4
|
||||
solar-panel-5=ソーラーパネル 5
|
||||
solar-panel-6=ソーラーパネル 6
|
||||
solar-panel-7=ソーラーパネル 7
|
||||
solar-panel-8=ソーラーパネル 8
|
||||
|
||||
boiler-2=ボイラー 2
|
||||
boiler-3=ボイラー 3
|
||||
boiler-4=ボイラー 4
|
||||
boiler-5=ボイラー 5
|
||||
|
||||
steam-engine-2=蒸気機関 2
|
||||
steam-engine-3=蒸気機関 3
|
||||
steam-engine-4=蒸気機関 4
|
||||
steam-engine-5=蒸気機関 5
|
||||
|
||||
nuclear-reactor-2=原子炉 2
|
||||
nuclear-reactor-3=原子炉 3
|
||||
nuclear-reactor-4=原子炉 4
|
||||
nuclear-reactor-5=原子炉 5
|
||||
|
||||
heat-pipe-2=ヒートパイプ 2
|
||||
heat-pipe-3=ヒートパイプ 3
|
||||
heat-pipe-4=ヒートパイプ 4
|
||||
heat-pipe-5=ヒートパイプ 5
|
||||
|
||||
heat-exchanger-2=熱交換器 2
|
||||
heat-exchanger-3=熱交換器 3
|
||||
heat-exchanger-4=熱交換器 4
|
||||
heat-exchanger-5=熱交換器 5
|
||||
|
||||
steam-turbine-2=蒸気タービン 2
|
||||
steam-turbine-3=蒸気タービン 3
|
||||
steam-turbine-4=蒸気タービン 4
|
||||
steam-turbine-5=蒸気タービン 5
|
||||
|
||||
[entity-name]
|
||||
accumulator-2=蓄電池 2
|
||||
accumulator-3=蓄電池 3
|
||||
accumulator-4=蓄電池 4
|
||||
accumulator-5=蓄電池 5
|
||||
accumulator-6=蓄電池 6
|
||||
accumulator-7=蓄電池 7
|
||||
accumulator-8=蓄電池 8
|
||||
|
||||
solar-panel-2=ソーラーパネル 2
|
||||
solar-panel-3=ソーラーパネル 3
|
||||
solar-panel-4=ソーラーパネル 4
|
||||
solar-panel-5=ソーラーパネル 5
|
||||
solar-panel-6=ソーラーパネル 6
|
||||
solar-panel-7=ソーラーパネル 7
|
||||
solar-panel-8=ソーラーパネル 8
|
||||
|
||||
boiler-2=ボイラー 2
|
||||
boiler-3=ボイラー 3
|
||||
boiler-4=ボイラー 4
|
||||
boiler-5=ボイラー 5
|
||||
|
||||
steam-engine-2=蒸気機関 2
|
||||
steam-engine-3=蒸気機関 3
|
||||
steam-engine-4=蒸気機関 4
|
||||
steam-engine-5=蒸気機関 5
|
||||
|
||||
nuclear-reactor-2=原子炉 2
|
||||
nuclear-reactor-3=原子炉 3
|
||||
nuclear-reactor-4=原子炉 4
|
||||
nuclear-reactor-5=原子炉 5
|
||||
|
||||
heat-pipe-2=ヒートパイプ 2
|
||||
heat-pipe-3=ヒートパイプ 3
|
||||
heat-pipe-4=ヒートパイプ 4
|
||||
heat-pipe-5=ヒートパイプ 5
|
||||
|
||||
heat-exchanger-2=熱交換器 2
|
||||
heat-exchanger-3=熱交換器 3
|
||||
heat-exchanger-4=熱交換器 4
|
||||
heat-exchanger-5=熱交換器 5
|
||||
|
||||
steam-turbine-2=蒸気タービン 2
|
||||
steam-turbine-3=蒸気タービン 3
|
||||
steam-turbine-4=蒸気タービン 4
|
||||
steam-turbine-5=蒸気タービン 5
|
||||
|
||||
[entity-description]
|
||||
accumulator-2=供給可能な電力が需要量を上回っている時に電力を貯蔵します。需要量が上回っている場合は放電します。
|
||||
accumulator-3=供給可能な電力が需要量を上回っている時に電力を貯蔵します。需要量が上回っている場合は放電します。
|
||||
accumulator-4=供給可能な電力が需要量を上回っている時に電力を貯蔵します。需要量が上回っている場合は放電します。
|
||||
accumulator-5=供給可能な電力が需要量を上回っている時に電力を貯蔵します。需要量が上回っている場合は放電します。
|
||||
accumulator-6=供給可能な電力が需要量を上回っている時に電力を貯蔵します。需要量が上回っている場合は放電します。
|
||||
accumulator-7=供給可能な電力が需要量を上回っている時に電力を貯蔵します。需要量が上回っている場合は放電します。
|
||||
accumulator-8=供給可能な電力が需要量を上回っている時に電力を貯蔵します。需要量が上回っている場合は放電します。
|
||||
|
||||
solar-panel-2=日中は100%の出力を生成しますが、夜間は0%に低下します。
|
||||
solar-panel-3=日中は100%の出力を生成しますが、夜間は0%に低下します。
|
||||
solar-panel-4=日中は100%の出力を生成しますが、夜間は0%に低下します。
|
||||
solar-panel-5=日中は100%の出力を生成しますが、夜間は0%に低下します。
|
||||
solar-panel-6=日中は100%の出力を生成しますが、夜間は0%に低下します。
|
||||
solar-panel-7=日中は100%の出力を生成しますが、夜間は0%に低下します。
|
||||
solar-panel-8=日中は100%の出力を生成しますが、夜間は0%に低下します。
|
||||
|
||||
boiler-2=燃料を燃やして水を蒸気に変えます。
|
||||
boiler-3=燃料を燃やして水を蒸気に変えます。
|
||||
boiler-4=燃料を燃やして水を蒸気に変えます。
|
||||
boiler-5=燃料を燃やして水を蒸気に変えます。
|
||||
|
||||
steam-engine-2=蒸気を利用して発電します。
|
||||
steam-engine-3=蒸気を利用して発電します。
|
||||
steam-engine-4=蒸気を利用して発電します。
|
||||
steam-engine-5=蒸気を利用して発電します。
|
||||
|
||||
nuclear-reactor-2=核燃料を使い熱を発生させます。他の原子炉と隣接させると,熱出力が増加します。
|
||||
nuclear-reactor-3=核燃料を使い熱を発生させます。他の原子炉と隣接させると,熱出力が増加します。
|
||||
nuclear-reactor-4=核燃料を使い熱を発生させます。他の原子炉と隣接させると,熱出力が増加します。
|
||||
nuclear-reactor-5=核燃料を使い熱を発生させます。他の原子炉と隣接させると,熱出力が増加します。
|
||||
|
||||
heat-exchanger-2=熱エネルギーを使って水を蒸気に変えます。
|
||||
heat-exchanger-3=熱エネルギーを使って水を蒸気に変えます。
|
||||
heat-exchanger-4=熱エネルギーを使って水を蒸気に変えます。
|
||||
heat-exchanger-5=熱エネルギーを使って水を蒸気に変えます。
|
||||
|
||||
steam-turbine-2=蒸気を利用して発電します。
|
||||
steam-turbine-3=蒸気を利用して発電します。
|
||||
steam-turbine-4=蒸気を利用して発電します。
|
||||
steam-turbine-5=蒸気を利用して発電します。
|
||||
|
||||
[technology-name]
|
||||
compound-energy=複合発電
|
||||
compound-energy-1=複合発電
|
||||
compound-energy-2=複合発電 2
|
||||
compound-energy-3=複合発電 3
|
||||
compound-energy-4=複合発電 4
|
||||
compound-energy-5=複合発電 5
|
||||
compound-energy-6=複合発電 6
|
||||
compound-energy-7=複合発電 7
|
||||
|
||||
[technology-description]
|
||||
compound-energy=クリーンで燃料が尽きることのない発電設備。夜間は発電しません。
|
||||
compound-energy-1=クリーンで燃料が尽きることのない発電設備。夜間は発電しません。
|
||||
compound-energy-2=クリーンで燃料が尽きることのない発電設備。夜間は発電しません。
|
||||
compound-energy-3=クリーンで燃料が尽きることのない発電設備。夜間は発電しません。
|
||||
compound-energy-4=クリーンで燃料が尽きることのない発電設備。夜間は発電しません。
|
||||
compound-energy-5=クリーンで燃料が尽きることのない発電設備。夜間は発電しません。
|
||||
compound-energy-6=クリーンで燃料が尽きることのない発電設備。夜間は発電しません。
|
||||
compound-energy-7=クリーンで燃料が尽きることのない発電設備。夜間は発電しません。
|
||||
|
||||
[mod-setting-name]
|
||||
PHI-EN-SOLAR-TIER=ソーラーパネル
|
||||
PHI-EN-STEAM-TIER=蒸気機関
|
||||
PHI-EN-NUCLEAR-TIER=原子炉
|
||||
|
||||
[mod-setting-description]
|
||||
PHI-EN-SOLAR-TIER=デフォルト 8 ; 止める 1
|
||||
PHI-EN-STEAM-TIER=デフォルト 5 ; 止める 1
|
||||
PHI-EN-NUCLEAR-TIER=デフォルト 5 ; 止める 1
|
||||
165
PHI-CL/locale/zh-CN/locale.cfg
Normal file
@@ -0,0 +1,165 @@
|
||||
[item-name]
|
||||
accumulator-2=蓄電池 2
|
||||
accumulator-3=蓄電池 3
|
||||
accumulator-4=蓄電池 4
|
||||
accumulator-5=蓄電池 5
|
||||
accumulator-6=蓄電池 6
|
||||
accumulator-7=蓄電池 7
|
||||
accumulator-8=蓄電池 8
|
||||
|
||||
solar-panel-2=太陽能板 2
|
||||
solar-panel-3=太陽能板 3
|
||||
solar-panel-4=太陽能板 4
|
||||
solar-panel-5=太陽能板 5
|
||||
solar-panel-6=太陽能板 6
|
||||
solar-panel-7=太陽能板 7
|
||||
solar-panel-8=太陽能板 8
|
||||
|
||||
boiler-2=鍋爐 2
|
||||
boiler-3=鍋爐 3
|
||||
boiler-4=鍋爐 4
|
||||
boiler-5=鍋爐 5
|
||||
|
||||
steam-engine-2=蒸汽發電機 2
|
||||
steam-engine-3=蒸汽發電機 3
|
||||
steam-engine-4=蒸汽發電機 4
|
||||
steam-engine-5=蒸汽發電機 5
|
||||
|
||||
nuclear-reactor-2=核能反應爐 2
|
||||
nuclear-reactor-3=核能反應爐 3
|
||||
nuclear-reactor-4=核能反應爐 4
|
||||
nuclear-reactor-5=核能反應爐 5
|
||||
|
||||
heat-pipe-2=熱導管 2
|
||||
heat-pipe-3=熱導管 3
|
||||
heat-pipe-4=熱導管 4
|
||||
heat-pipe-5=熱導管 5
|
||||
|
||||
heat-exchanger-2=熱交換器 2
|
||||
heat-exchanger-3=熱交換器 3
|
||||
heat-exchanger-4=熱交換器 4
|
||||
heat-exchanger-5=熱交換器 5
|
||||
|
||||
steam-turbine-2=蒸汽渦輪發電機 2
|
||||
steam-turbine-3=蒸汽渦輪發電機 3
|
||||
steam-turbine-4=蒸汽渦輪發電機 4
|
||||
steam-turbine-5=蒸汽渦輪發電機 5
|
||||
|
||||
[entity-name]
|
||||
accumulator-2=蓄電池 2
|
||||
accumulator-3=蓄電池 3
|
||||
accumulator-4=蓄電池 4
|
||||
accumulator-5=蓄電池 5
|
||||
accumulator-6=蓄電池 6
|
||||
accumulator-7=蓄電池 7
|
||||
accumulator-8=蓄電池 8
|
||||
|
||||
solar-panel-2=太陽能板 2
|
||||
solar-panel-3=太陽能板 3
|
||||
solar-panel-4=太陽能板 4
|
||||
solar-panel-5=太陽能板 5
|
||||
solar-panel-6=太陽能板 6
|
||||
solar-panel-7=太陽能板 7
|
||||
solar-panel-8=太陽能板 8
|
||||
|
||||
boiler-2=鍋爐 2
|
||||
boiler-3=鍋爐 3
|
||||
boiler-4=鍋爐 4
|
||||
boiler-5=鍋爐 5
|
||||
|
||||
steam-engine-2=蒸汽發電機 2
|
||||
steam-engine-3=蒸汽發電機 3
|
||||
steam-engine-4=蒸汽發電機 4
|
||||
steam-engine-5=蒸汽發電機 5
|
||||
|
||||
nuclear-reactor-2=核能反應爐 2
|
||||
nuclear-reactor-3=核能反應爐 3
|
||||
nuclear-reactor-4=核能反應爐 4
|
||||
nuclear-reactor-5=核能反應爐 5
|
||||
|
||||
heat-pipe-2=熱導管 2
|
||||
heat-pipe-3=熱導管 3
|
||||
heat-pipe-4=熱導管 4
|
||||
heat-pipe-5=熱導管 5
|
||||
|
||||
heat-exchanger-2=熱交換器 2
|
||||
heat-exchanger-3=熱交換器 3
|
||||
heat-exchanger-4=熱交換器 4
|
||||
heat-exchanger-5=熱交換器 5
|
||||
|
||||
steam-turbine-2=蒸汽渦輪發電機 2
|
||||
steam-turbine-3=蒸汽渦輪發電機 3
|
||||
steam-turbine-4=蒸汽渦輪發電機 4
|
||||
steam-turbine-5=蒸汽渦輪發電機 5
|
||||
|
||||
[entity-description]
|
||||
accumulator-2=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-3=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-4=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-5=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-6=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-7=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-8=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
|
||||
solar-panel-2=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-3=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-4=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-5=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-6=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-7=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-8=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
|
||||
boiler-2=燃燒燃料,把水煮成蒸汽。
|
||||
boiler-3=燃燒燃料,把水煮成蒸汽。
|
||||
boiler-4=燃燒燃料,把水煮成蒸汽。
|
||||
boiler-5=燃燒燃料,把水煮成蒸汽。
|
||||
|
||||
steam-engine-2=利用蒸汽來發電。
|
||||
steam-engine-3=利用蒸汽來發電。
|
||||
steam-engine-4=利用蒸汽來發電。
|
||||
steam-engine-5=利用蒸汽來發電。
|
||||
|
||||
nuclear-reactor-2=以鈾燃料棒產生熱能。若和其他反應爐相鄰,可產生更多熱能。
|
||||
nuclear-reactor-3=以鈾燃料棒產生熱能。若和其他反應爐相鄰,可產生更多熱能。
|
||||
nuclear-reactor-4=以鈾燃料棒產生熱能。若和其他反應爐相鄰,可產生更多熱能。
|
||||
nuclear-reactor-5=以鈾燃料棒產生熱能。若和其他反應爐相鄰,可產生更多熱能。
|
||||
|
||||
heat-exchanger-2=利用熱能,把水煮成蒸汽。
|
||||
heat-exchanger-3=利用熱能,把水煮成蒸汽。
|
||||
heat-exchanger-4=利用熱能,把水煮成蒸汽。
|
||||
heat-exchanger-5=利用熱能,把水煮成蒸汽。
|
||||
|
||||
steam-turbine-2=利用蒸汽來發電。
|
||||
steam-turbine-3=利用蒸汽來發電。
|
||||
steam-turbine-4=利用蒸汽來發電。
|
||||
steam-turbine-5=利用蒸汽來發電。
|
||||
|
||||
[technology-name]
|
||||
compound-energy=複合發電
|
||||
compound-energy-1=複合發電
|
||||
compound-energy-2=複合發電 2
|
||||
compound-energy-3=複合發電 3
|
||||
compound-energy-4=複合發電 4
|
||||
compound-energy-5=複合發電 5
|
||||
compound-energy-6=複合發電 6
|
||||
compound-energy-7=複合發電 7
|
||||
|
||||
[technology-description]
|
||||
compound-energy=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-1=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-2=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-3=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-4=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-5=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-6=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-7=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
|
||||
[mod-setting-name]
|
||||
PHI-EN-SOLAR-TIER=太陽能板
|
||||
PHI-EN-STEAM-TIER=蒸汽發電機
|
||||
PHI-EN-NUCLEAR-TIER=核能反應爐
|
||||
|
||||
[mod-setting-description]
|
||||
PHI-EN-SOLAR-TIER=預設 8 ; 停用 1
|
||||
PHI-EN-STEAM-TIER=預設 5 ; 停用 1
|
||||
PHI-EN-NUCLEAR-TIER=預設 5 ; 停用 1
|
||||
165
PHI-CL/locale/zh-TW/locale.cfg
Normal file
@@ -0,0 +1,165 @@
|
||||
[item-name]
|
||||
accumulator-2=蓄電池 2
|
||||
accumulator-3=蓄電池 3
|
||||
accumulator-4=蓄電池 4
|
||||
accumulator-5=蓄電池 5
|
||||
accumulator-6=蓄電池 6
|
||||
accumulator-7=蓄電池 7
|
||||
accumulator-8=蓄電池 8
|
||||
|
||||
solar-panel-2=太陽能板 2
|
||||
solar-panel-3=太陽能板 3
|
||||
solar-panel-4=太陽能板 4
|
||||
solar-panel-5=太陽能板 5
|
||||
solar-panel-6=太陽能板 6
|
||||
solar-panel-7=太陽能板 7
|
||||
solar-panel-8=太陽能板 8
|
||||
|
||||
boiler-2=鍋爐 2
|
||||
boiler-3=鍋爐 3
|
||||
boiler-4=鍋爐 4
|
||||
boiler-5=鍋爐 5
|
||||
|
||||
steam-engine-2=蒸汽發電機 2
|
||||
steam-engine-3=蒸汽發電機 3
|
||||
steam-engine-4=蒸汽發電機 4
|
||||
steam-engine-5=蒸汽發電機 5
|
||||
|
||||
nuclear-reactor-2=核能反應爐 2
|
||||
nuclear-reactor-3=核能反應爐 3
|
||||
nuclear-reactor-4=核能反應爐 4
|
||||
nuclear-reactor-5=核能反應爐 5
|
||||
|
||||
heat-pipe-2=熱導管 2
|
||||
heat-pipe-3=熱導管 3
|
||||
heat-pipe-4=熱導管 4
|
||||
heat-pipe-5=熱導管 5
|
||||
|
||||
heat-exchanger-2=熱交換器 2
|
||||
heat-exchanger-3=熱交換器 3
|
||||
heat-exchanger-4=熱交換器 4
|
||||
heat-exchanger-5=熱交換器 5
|
||||
|
||||
steam-turbine-2=蒸汽渦輪發電機 2
|
||||
steam-turbine-3=蒸汽渦輪發電機 3
|
||||
steam-turbine-4=蒸汽渦輪發電機 4
|
||||
steam-turbine-5=蒸汽渦輪發電機 5
|
||||
|
||||
[entity-name]
|
||||
accumulator-2=蓄電池 2
|
||||
accumulator-3=蓄電池 3
|
||||
accumulator-4=蓄電池 4
|
||||
accumulator-5=蓄電池 5
|
||||
accumulator-6=蓄電池 6
|
||||
accumulator-7=蓄電池 7
|
||||
accumulator-8=蓄電池 8
|
||||
|
||||
solar-panel-2=太陽能板 2
|
||||
solar-panel-3=太陽能板 3
|
||||
solar-panel-4=太陽能板 4
|
||||
solar-panel-5=太陽能板 5
|
||||
solar-panel-6=太陽能板 6
|
||||
solar-panel-7=太陽能板 7
|
||||
solar-panel-8=太陽能板 8
|
||||
|
||||
boiler-2=鍋爐 2
|
||||
boiler-3=鍋爐 3
|
||||
boiler-4=鍋爐 4
|
||||
boiler-5=鍋爐 5
|
||||
|
||||
steam-engine-2=蒸汽發電機 2
|
||||
steam-engine-3=蒸汽發電機 3
|
||||
steam-engine-4=蒸汽發電機 4
|
||||
steam-engine-5=蒸汽發電機 5
|
||||
|
||||
nuclear-reactor-2=核能反應爐 2
|
||||
nuclear-reactor-3=核能反應爐 3
|
||||
nuclear-reactor-4=核能反應爐 4
|
||||
nuclear-reactor-5=核能反應爐 5
|
||||
|
||||
heat-pipe-2=熱導管 2
|
||||
heat-pipe-3=熱導管 3
|
||||
heat-pipe-4=熱導管 4
|
||||
heat-pipe-5=熱導管 5
|
||||
|
||||
heat-exchanger-2=熱交換器 2
|
||||
heat-exchanger-3=熱交換器 3
|
||||
heat-exchanger-4=熱交換器 4
|
||||
heat-exchanger-5=熱交換器 5
|
||||
|
||||
steam-turbine-2=蒸汽渦輪發電機 2
|
||||
steam-turbine-3=蒸汽渦輪發電機 3
|
||||
steam-turbine-4=蒸汽渦輪發電機 4
|
||||
steam-turbine-5=蒸汽渦輪發電機 5
|
||||
|
||||
[entity-description]
|
||||
accumulator-2=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-3=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-4=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-5=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-6=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-7=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
accumulator-8=在發電超出用電量時,可儲存有限電力;反之則會釋放電力。
|
||||
|
||||
solar-panel-2=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-3=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-4=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-5=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-6=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-7=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
solar-panel-8=白天可達 100% 發電功率,但晚上降至 0%。
|
||||
|
||||
boiler-2=燃燒燃料,把水煮成蒸汽。
|
||||
boiler-3=燃燒燃料,把水煮成蒸汽。
|
||||
boiler-4=燃燒燃料,把水煮成蒸汽。
|
||||
boiler-5=燃燒燃料,把水煮成蒸汽。
|
||||
|
||||
steam-engine-2=利用蒸汽來發電。
|
||||
steam-engine-3=利用蒸汽來發電。
|
||||
steam-engine-4=利用蒸汽來發電。
|
||||
steam-engine-5=利用蒸汽來發電。
|
||||
|
||||
nuclear-reactor-2=以鈾燃料棒產生熱能。若和其他反應爐相鄰,可產生更多熱能。
|
||||
nuclear-reactor-3=以鈾燃料棒產生熱能。若和其他反應爐相鄰,可產生更多熱能。
|
||||
nuclear-reactor-4=以鈾燃料棒產生熱能。若和其他反應爐相鄰,可產生更多熱能。
|
||||
nuclear-reactor-5=以鈾燃料棒產生熱能。若和其他反應爐相鄰,可產生更多熱能。
|
||||
|
||||
heat-exchanger-2=利用熱能,把水煮成蒸汽。
|
||||
heat-exchanger-3=利用熱能,把水煮成蒸汽。
|
||||
heat-exchanger-4=利用熱能,把水煮成蒸汽。
|
||||
heat-exchanger-5=利用熱能,把水煮成蒸汽。
|
||||
|
||||
steam-turbine-2=利用蒸汽來發電。
|
||||
steam-turbine-3=利用蒸汽來發電。
|
||||
steam-turbine-4=利用蒸汽來發電。
|
||||
steam-turbine-5=利用蒸汽來發電。
|
||||
|
||||
[technology-name]
|
||||
compound-energy=複合發電
|
||||
compound-energy-1=複合發電
|
||||
compound-energy-2=複合發電 2
|
||||
compound-energy-3=複合發電 3
|
||||
compound-energy-4=複合發電 4
|
||||
compound-energy-5=複合發電 5
|
||||
compound-energy-6=複合發電 6
|
||||
compound-energy-7=複合發電 7
|
||||
|
||||
[technology-description]
|
||||
compound-energy=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-1=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-2=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-3=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-4=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-5=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-6=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
compound-energy-7=取之不盡的電力來源,但在夜晚派不上用場。
|
||||
|
||||
[mod-setting-name]
|
||||
PHI-EN-SOLAR-TIER=太陽能板
|
||||
PHI-EN-STEAM-TIER=蒸汽發電機
|
||||
PHI-EN-NUCLEAR-TIER=核能反應爐
|
||||
|
||||
[mod-setting-description]
|
||||
PHI-EN-SOLAR-TIER=預設 8 ; 停用 1
|
||||
PHI-EN-STEAM-TIER=預設 5 ; 停用 1
|
||||
PHI-EN-NUCLEAR-TIER=預設 5 ; 停用 1
|
||||
36
PHI-CL/migrations/PHI-EN_1.1.9.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"entity":
|
||||
[
|
||||
["solar-panel-mk2", "solar-panel-2"],
|
||||
["solar-panel-mk3", "solar-panel-3"],
|
||||
["solar-panel-mk4", "solar-panel-4"],
|
||||
["solar-panel-mk5", "solar-panel-5"],
|
||||
["solar-panel-mk6", "solar-panel-6"],
|
||||
["solar-panel-mk7", "solar-panel-7"],
|
||||
["solar-panel-mk8", "solar-panel-8"],
|
||||
["accumulator-mk2", "accumulator-2"],
|
||||
["accumulator-mk3", "accumulator-3"],
|
||||
["accumulator-mk4", "accumulator-4"],
|
||||
["accumulator-mk5", "accumulator-5"],
|
||||
["accumulator-mk6", "accumulator-6"],
|
||||
["accumulator-mk7", "accumulator-7"],
|
||||
["accumulator-mk8", "accumulator-8"]
|
||||
],
|
||||
"item":
|
||||
[
|
||||
["solar-panel-mk2", "solar-panel-2"],
|
||||
["solar-panel-mk3", "solar-panel-3"],
|
||||
["solar-panel-mk4", "solar-panel-4"],
|
||||
["solar-panel-mk5", "solar-panel-5"],
|
||||
["solar-panel-mk6", "solar-panel-6"],
|
||||
["solar-panel-mk7", "solar-panel-7"],
|
||||
["solar-panel-mk8", "solar-panel-8"],
|
||||
["accumulator-mk2", "accumulator-2"],
|
||||
["accumulator-mk3", "accumulator-3"],
|
||||
["accumulator-mk4", "accumulator-4"],
|
||||
["accumulator-mk5", "accumulator-5"],
|
||||
["accumulator-mk6", "accumulator-6"],
|
||||
["accumulator-mk7", "accumulator-7"],
|
||||
["accumulator-mk8", "accumulator-8"]
|
||||
]
|
||||
}
|
||||
23
PHI-CL/migrations/migrations.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
local items = require '__PHI-EN__/config'
|
||||
|
||||
for _, force in pairs(game.forces) do
|
||||
local technologies = force.technologies
|
||||
local recipes = force.recipes
|
||||
|
||||
for k, v in pairs(items) do
|
||||
if k ~= 'setting' then
|
||||
if v.enabled then
|
||||
for j=v.min, v.max, 1 do
|
||||
if technologies['compound-energy-' .. j] ~= nil then
|
||||
if technologies['compound-energy-' .. j].researched then
|
||||
if recipes[v.name .. '-' .. j] ~= nil then
|
||||
recipes[v.name .. '-' .. j].enabled = true
|
||||
recipes[v.name .. '-' .. j].reload()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
30
PHI-CL/settings.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
data:extend({
|
||||
{
|
||||
type = 'bool-setting',
|
||||
name = 'PHI-EN',
|
||||
setting_type = 'startup',
|
||||
default_value = true,
|
||||
order = 'A1'
|
||||
},
|
||||
{
|
||||
type = 'int-setting',
|
||||
name = 'PHI-EN-SOLAR-TIER',
|
||||
setting_type = 'startup',
|
||||
default_value = 8,
|
||||
allowed_values = {1, 2, 3, 4, 5, 6, 7, 8},
|
||||
order = 'B1'
|
||||
}, {
|
||||
type = 'int-setting',
|
||||
name = 'PHI-EN-STEAM-TIER',
|
||||
setting_type = 'startup',
|
||||
default_value = 5,
|
||||
allowed_values = {1, 2, 3, 4, 5},
|
||||
order = 'B2'
|
||||
}, {
|
||||
type = 'int-setting',
|
||||
name = 'PHI-EN-NUCLEAR-TIER',
|
||||
setting_type = 'startup',
|
||||
default_value = 5,
|
||||
allowed_values = {1, 2, 3, 4, 5},
|
||||
order = 'B3'
|
||||
}})
|
||||
BIN
PHI-CL/thumbnail.png
Normal file
|
After Width: | Height: | Size: 86 KiB |