updated settings
This commit is contained in:
parent
77237a54e6
commit
4e795d1900
7 changed files with 114 additions and 117 deletions
|
@ -7,6 +7,22 @@ local function sprite(name)
|
|||
return '__248k__/ressources/electronic/el_burner/el_burner_'..name
|
||||
end
|
||||
|
||||
local function burner_output()
|
||||
if config("power_output") == "2.4MW (normal)" then
|
||||
return "2.4MW"
|
||||
end
|
||||
|
||||
if config("power_output") == "3MW (high)" then
|
||||
return "3MW"
|
||||
end
|
||||
|
||||
if config("power_output") == "1.2MW (low)" then
|
||||
return "1.2MW"
|
||||
end
|
||||
|
||||
return "2.4MW"
|
||||
end
|
||||
|
||||
--item
|
||||
data:extend({
|
||||
{
|
||||
|
@ -72,9 +88,8 @@ data:extend({
|
|||
type = 'electric',
|
||||
usage_priority = 'primary-output',
|
||||
input_flow_limit = '0W',
|
||||
output_flow_limit = tostring(config('power_output'))..'W',
|
||||
},
|
||||
max_power_output = tostring(config('power_output'))..'W',
|
||||
max_power_output = burner_output(),
|
||||
--animation
|
||||
animation = {
|
||||
filename = sprite('entity_animation.png'),
|
||||
|
@ -114,10 +129,9 @@ data:extend({
|
|||
type = 'electric',
|
||||
usage_priority = 'primary-output',
|
||||
input_flow_limit = '0W',
|
||||
output_flow_limit = tostring(config('kerosene_power_output'))..'W',
|
||||
emissions_per_minute = 20,
|
||||
},
|
||||
max_power_output = tostring(config('kerosene_power_output'))..'W',
|
||||
max_power_output = burner_output(),
|
||||
maximum_temperature = 40,
|
||||
fluid_usage_per_tick = 1,
|
||||
fluid_box = {
|
||||
|
|
|
@ -7,6 +7,29 @@ local function sprite(name)
|
|||
return '__248k__/ressources/electronic/el_ki/el_ki_core/el_ki_core_'..name
|
||||
end
|
||||
|
||||
local function core_input(core_number)
|
||||
if core_number == 1 then
|
||||
if config("energy_usage") == "normal" then return "20MW" end
|
||||
if config("energy_usage") == "high" then return "40MW" end
|
||||
if config("energy_usage") == "very high" then return "100MW" end
|
||||
if config("energy_usage") == "low" then return "10MW" end
|
||||
end
|
||||
|
||||
if core_number == 2 then
|
||||
if config("energy_usage") == "normal" then return "200MW" end
|
||||
if config("energy_usage") == "high" then return "400MW" end
|
||||
if config("energy_usage") == "very high" then return "1000MW" end
|
||||
if config("energy_usage") == "low" then return "100MW" end
|
||||
end
|
||||
|
||||
if core_number == 3 then
|
||||
if config("energy_usage") == "normal" then return "2000MW" end
|
||||
if config("energy_usage") == "high" then return "4000MW" end
|
||||
if config("energy_usage") == "very high" then return "10000MW" end
|
||||
if config("energy_usage") == "low" then return "1000MW" end
|
||||
end
|
||||
end
|
||||
|
||||
local allowed_modules = {}
|
||||
if config("productivity") then
|
||||
allowed_modules = {"speed", "productivity", "consumption", "pollution"}
|
||||
|
@ -72,9 +95,8 @@ data:extend({
|
|||
energy_source = {
|
||||
type = 'electric',
|
||||
usage_priority = 'primary-input',
|
||||
input_flow_limit = config('energy_usage_input')..'W',
|
||||
},
|
||||
energy_usage = config('energy_usage')..'W',
|
||||
energy_usage = core_input(1),
|
||||
fluid_boxes = {
|
||||
{
|
||||
filter = 'el_ki_cpu_fluid',
|
||||
|
@ -207,9 +229,8 @@ data:extend({
|
|||
energy_source = {
|
||||
type = 'electric',
|
||||
usage_priority = 'primary-input',
|
||||
input_flow_limit = config('energy_usage_input_2')..'W',
|
||||
},
|
||||
energy_usage = config('energy_usage_2')..'W',
|
||||
energy_usage = core_input(2),
|
||||
fluid_boxes = {
|
||||
{
|
||||
filter = 'el_ki_cpu_fluid',
|
||||
|
@ -368,9 +389,8 @@ data:extend({
|
|||
energy_source = {
|
||||
type = 'electric',
|
||||
usage_priority = 'primary-input',
|
||||
input_flow_limit = config('energy_usage_input_3')..'W',
|
||||
},
|
||||
energy_usage = config('energy_usage_3')..'W',
|
||||
energy_usage = core_input(3),
|
||||
fluid_boxes = {
|
||||
{
|
||||
filter = 'el_ki_cpu_fluid',
|
||||
|
|
|
@ -7,6 +7,22 @@ local function sprite(name)
|
|||
return '__248k__/ressources/electronic/el_solar/el_solar_'..name
|
||||
end
|
||||
|
||||
local function solar_output()
|
||||
if config("power_output") == "80kW (normal)" then
|
||||
return "80KW"
|
||||
end
|
||||
|
||||
if config("power_output") == "100kW (high)" then
|
||||
return "100KW"
|
||||
end
|
||||
|
||||
if config("power_output") == "160kW (very high)" then
|
||||
return "160KW"
|
||||
end
|
||||
|
||||
return "80kW"
|
||||
end
|
||||
|
||||
--item
|
||||
data:extend({
|
||||
{
|
||||
|
@ -45,9 +61,8 @@ data:extend({
|
|||
type = 'electric',
|
||||
usage_priority = 'solar',
|
||||
input_flow_limit = '0W',
|
||||
output_flow_limit = tostring(config('power_output'))..'W',
|
||||
},
|
||||
production = tostring(config('power_output'))..'W',
|
||||
production = solar_output(),
|
||||
--picture
|
||||
picture = {
|
||||
filename = sprite('entity_picture_1.png'),
|
||||
|
|
|
@ -7,6 +7,22 @@ local function sprite(name)
|
|||
return '__248k__/ressources/electronic/el_water_generator/el_water_generator_'..name
|
||||
end
|
||||
|
||||
local function water_output()
|
||||
if config("power_output") == "4MW (normal)" then
|
||||
return "4MW"
|
||||
end
|
||||
|
||||
if config("power_output") == "5MW (high)" then
|
||||
return "5MW"
|
||||
end
|
||||
|
||||
if config("power_output") == "3MW (low)" then
|
||||
return "3MW"
|
||||
end
|
||||
|
||||
return "3MW"
|
||||
end
|
||||
|
||||
--item
|
||||
data:extend({
|
||||
{
|
||||
|
@ -43,7 +59,7 @@ data:extend({
|
|||
--energy
|
||||
maximum_temperature = 500,
|
||||
fluid_usage_per_tick = 1,
|
||||
max_power_output = tostring(config('power_output'))..'W',
|
||||
max_power_output = water_output(),
|
||||
effectivity = 0.9,
|
||||
fluid_box = {
|
||||
base_area = 1,
|
||||
|
@ -69,7 +85,6 @@ data:extend({
|
|||
type = 'electric',
|
||||
usage_priority = 'primary-output',
|
||||
input_flow_limit = '0W',
|
||||
output_flow_limit = tostring(config('power_output'))..'W',
|
||||
},
|
||||
--animation
|
||||
vertical_animation = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue