mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
464
PHI-CL/data.lua
464
PHI-CL/data.lua
@@ -2,7 +2,11 @@ local items = require 'config'
|
||||
local main = require 'main'
|
||||
local file_stage = 1
|
||||
|
||||
if settings.startup['PHI-EN'].value and settings.startup['PHI-EN-SOLAR-TIER'].value and settings.startup['PHI-EN-POWER-TIER'].value and settings.startup['PHI-EN-POWER-TIER'].value then
|
||||
if settings.startup['PHI-EN'].value then
|
||||
if settings.startup['PHI-EN-POWER-TIER'].value > 1 then
|
||||
data.raw['fluid']['steam'].max_temperature = 5000
|
||||
end
|
||||
|
||||
local ml = math.max(settings.startup['PHI-EN-SOLAR-TIER'].value, settings.startup['PHI-EN-POWER-TIER'].value)
|
||||
|
||||
for i=1, 7 do
|
||||
@@ -44,7 +48,7 @@ if settings.startup['PHI-EN'].value and settings.startup['PHI-EN-SOLAR-TIER'].va
|
||||
end
|
||||
end
|
||||
|
||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-RADAR'].value then
|
||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TOOL'].value then
|
||||
local item = table.deepcopy(data.raw['item']['radar'])
|
||||
item.name = 'super-radar'
|
||||
item.place_result = 'super-radar'
|
||||
@@ -87,9 +91,127 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-RADAR'].value t
|
||||
localised_name = {'name.super-radar'},
|
||||
localised_description = {'description.super-radar'}
|
||||
}})
|
||||
|
||||
item = table.deepcopy(data.raw['item']['electric-energy-interface'])
|
||||
item.name = 'passive-energy-void'
|
||||
item.place_result = 'passive-energy-void'
|
||||
item.localised_name = {'name.passive-energy-void'}
|
||||
item.localised_description = {'description.passive-energy-void'}
|
||||
data:extend({item})
|
||||
|
||||
entity = table.deepcopy(data.raw['electric-energy-interface']['electric-energy-interface'])
|
||||
entity.name = 'passive-energy-void'
|
||||
entity.minable.result = 'passive-energy-void'
|
||||
entity.energy_source.usage_priority = 'tertiary'
|
||||
entity.energy_source.emissions_per_minute = {pollution = 0}
|
||||
entity.energy_source.input_flow_limit = '1TW'
|
||||
entity.energy_source.output_flow_limit = '0W'
|
||||
entity.energy_production = '0W'
|
||||
entity.energy_usage = '1TW'
|
||||
entity.gui_mode = 'none'
|
||||
entity.localised_name = {'name.passive-energy-void'}
|
||||
entity.localised_description = {'description.passive-energy-void'}
|
||||
data:extend({entity})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'passive-energy-void',
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{type='item', name='accumulator', amount=1}},
|
||||
results = {{type='item', name='passive-energy-void', amount=1}},
|
||||
main_product = 'passive-energy-void',
|
||||
localised_name = {'name.passive-energy-void'},
|
||||
localised_description = {'description.passive-energy-void'}
|
||||
}})
|
||||
|
||||
table.insert(data.raw.technology['electric-energy-accumulators'].effects, {type='unlock-recipe', recipe='passive-energy-void'})
|
||||
data:extend({{type='recipe-category', name='fluid'}})
|
||||
|
||||
item = table.deepcopy(data.raw['item']['offshore-pump'])
|
||||
item.name = 'super-pump'
|
||||
item.place_result = 'super-pump'
|
||||
item.order = 'b[fluids]-a[super-pump]-o'
|
||||
|
||||
item.icons = {
|
||||
{
|
||||
icon = '__base__/graphics/icons/offshore-pump.png',
|
||||
tint = items['tint'][2],
|
||||
icon_size = 64,
|
||||
icon_mipmaps = 4
|
||||
}
|
||||
}
|
||||
|
||||
item.icon = nil
|
||||
item.icon_size = nil
|
||||
item.icon_mipmaps = nil
|
||||
item.localised_name = {'name.super-pump'}
|
||||
item.localised_description = item.localised_description
|
||||
data:extend({item})
|
||||
|
||||
entity = table.deepcopy(data.raw['offshore-pump']['offshore-pump'])
|
||||
entity.name = 'super-pump'
|
||||
entity.minable.result = 'super-pump'
|
||||
entity.type = 'assembling-machine'
|
||||
entity.crafting_categories = {'fluid'}
|
||||
entity.crafting_speed = 1
|
||||
entity.energy_source = {type = 'void'}
|
||||
entity.fluid_box.volume = 4000
|
||||
entity.fluid_boxes = {table.deepcopy(entity.fluid_box)}
|
||||
entity.fluid_box = nil
|
||||
entity.fluid_boxes_off_when_no_fluid_recipe = false
|
||||
entity.effect_receiver = {uses_module_effects=false, uses_beacon_effects=false}
|
||||
entity.allowed_effects = {'consumption'}
|
||||
entity.collision_mask = nil
|
||||
entity.tile_buildability_rules = nil
|
||||
entity.fluid_source_offset = nil
|
||||
entity.localised_name = {'name.super-pump'}
|
||||
entity.localised_description = entity.localised_description
|
||||
data:extend({entity})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'super-pump',
|
||||
energy_required = 2,
|
||||
enabled = true,
|
||||
ingredients = {{type='item', name='electronic-circuit', amount=2}, {type='item', name='pipe', amount=1}, {type='item', name='iron-gear-wheel', amount=1}},
|
||||
results = {{type='item', name='super-pump', amount=1}},
|
||||
main_product = 'super-pump',
|
||||
localised_name = {'name.super-pump'},
|
||||
localised_description = nil
|
||||
}})
|
||||
|
||||
for _, v in pairs(data.raw.fluid) do
|
||||
if v.subgroup == 'fluid' then
|
||||
local temp
|
||||
|
||||
if v.max_temperature then
|
||||
temp = v.max_temperature
|
||||
|
||||
else
|
||||
temp = v.default_temperature
|
||||
end
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = v.name,
|
||||
category = 'fluid',
|
||||
energy_required = 1,
|
||||
enabled = true,
|
||||
ingredients = {},
|
||||
results = {{type='fluid', name=v.name, amount=16000, temperature=temp}},
|
||||
main_product = v.name,
|
||||
hide_from_player_crafting = true,
|
||||
allow_productivity = false,
|
||||
crafting_machine_tint = {primary=v.flow_color},
|
||||
localised_name = v.localised_name,
|
||||
localised_description = nil
|
||||
}})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TRASH'].value then
|
||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-UTILITY'].value then
|
||||
local item = table.deepcopy(data.raw['item']['steel-chest'])
|
||||
item.name = 'trash-chest'
|
||||
item.place_result = 'trash-chest'
|
||||
@@ -196,97 +318,8 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TRASH'].value t
|
||||
}})
|
||||
|
||||
table.insert(data.raw.technology['automation'].effects, {type='unlock-recipe', recipe='trash-pipe'})
|
||||
end
|
||||
|
||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-LINKED'].value then
|
||||
local item = table.deepcopy(data.raw['item']['linked-chest'])
|
||||
item.supgroup = 'storage'
|
||||
item.order = 'a[items]-d[linked-chest]'
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['linked-container']['linked-chest'])
|
||||
entity.circuit_wire_connection_point = data.raw['container']['steel-chest'].circuit_wire_connection_point
|
||||
entity.circuit_connector_sprites = data.raw['container']['steel-chest'].circuit_connector_sprites
|
||||
entity.circuit_wire_max_distance = data.raw['container']['steel-chest'].circuit_wire_max_distance
|
||||
entity.inventory_type = 'with_filters_and_bar'
|
||||
entity.inventory_size = 48
|
||||
entity.gui_mode = 'all'
|
||||
entity.se_allow_in_space = true
|
||||
data:extend({entity})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'linked-chest',
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{type='item', name='steel-chest', amount=1}},
|
||||
results = {{type='item', name='linked-chest', amount=1}},
|
||||
main_product = 'linked-chest'
|
||||
}})
|
||||
|
||||
table.insert(data.raw.technology['steel-processing'].effects, {type='unlock-recipe', recipe='linked-chest'})
|
||||
end
|
||||
|
||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-LOADER'].value then
|
||||
data.raw.recipe['loader'].hidden = false
|
||||
data.raw.recipe['fast-loader'].hidden = false
|
||||
data.raw.recipe['express-loader'].hidden = false
|
||||
|
||||
table.insert(data.raw.technology['logistics'].effects, {type='unlock-recipe', recipe='loader'})
|
||||
table.insert(data.raw.technology['logistics-2'].effects, {type='unlock-recipe', recipe='fast-loader'})
|
||||
table.insert(data.raw.technology['logistics-3'].effects, {type='unlock-recipe', recipe='express-loader'})
|
||||
|
||||
if mods['space-age'] then
|
||||
data.raw.recipe['turbo-loader'].hidden = false
|
||||
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type='unlock-recipe', recipe='turbo-loader'})
|
||||
end
|
||||
end
|
||||
|
||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-ENERGY'].value then
|
||||
local item = table.deepcopy(data.raw['item']['electric-energy-interface'])
|
||||
item.name = 'passive-energy-void'
|
||||
item.place_result = 'passive-energy-void'
|
||||
item.localised_name = {'name.passive-energy-void'}
|
||||
item.localised_description = {'description.passive-energy-void'}
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['electric-energy-interface']['electric-energy-interface'])
|
||||
entity.name = 'passive-energy-void'
|
||||
entity.minable.result = 'passive-energy-void'
|
||||
entity.energy_source.usage_priority = 'tertiary'
|
||||
entity.energy_source.emissions_per_minute = {pollution = 0}
|
||||
entity.energy_source.input_flow_limit = '1TW'
|
||||
entity.energy_source.output_flow_limit = '0W'
|
||||
entity.energy_production = '0W'
|
||||
entity.energy_usage = '1TW'
|
||||
entity.gui_mode = 'none'
|
||||
entity.localised_name = {'name.passive-energy-void'}
|
||||
entity.localised_description = {'description.passive-energy-void'}
|
||||
data:extend({entity})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'passive-energy-void',
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{type='item', name='accumulator', amount=1}},
|
||||
results = {{type='item', name='passive-energy-void', amount=1}},
|
||||
main_product = 'passive-energy-void',
|
||||
localised_name = {'name.passive-energy-void'},
|
||||
localised_description = {'description.passive-energy-void'}
|
||||
}})
|
||||
|
||||
table.insert(data.raw.technology['electric-energy-accumulators'].effects, {type='unlock-recipe', recipe='passive-energy-void'})
|
||||
end
|
||||
|
||||
if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-EFFCY'].value then
|
||||
data.raw['module']['efficiency-module'].effect = {consumption=-0.4, pollution=-0.4}
|
||||
data.raw['module']['efficiency-module-2'].effect = {consumption=-0.8, pollution=-0.8}
|
||||
data.raw['module']['efficiency-module-3'].effect = {consumption=-1.2, pollution=-1.2}
|
||||
end
|
||||
|
||||
if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-BOILER'].value then
|
||||
local item = table.deepcopy(data.raw['item']['boiler'])
|
||||
item = table.deepcopy(data.raw['item']['boiler'])
|
||||
item.name = 'electric-boiler'
|
||||
item.place_result = 'electric-boiler'
|
||||
item.order = 'b[steam-power]-a[electric-boiler]'
|
||||
@@ -294,7 +327,7 @@ if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-BOILER'].value
|
||||
item.localised_description = {'description.electric-boiler'}
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['boiler']['boiler'])
|
||||
entity = table.deepcopy(data.raw['boiler']['boiler'])
|
||||
entity.name = 'electric-boiler'
|
||||
entity.energy_consumption = '7200kW'
|
||||
entity.buffer_capacity = '14400kJ'
|
||||
@@ -340,9 +373,7 @@ if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-BOILER'].value
|
||||
-- electric boiler
|
||||
data.raw['boiler']['boiler'].fast_replaceable_group = 'boiler'
|
||||
data.raw['boiler']['electric-boiler'].fast_replaceable_group = data.raw['boiler']['electric-boiler'].fast_replaceable_group
|
||||
end
|
||||
|
||||
if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-CHEST'].value then
|
||||
local chests = {
|
||||
'steel-chest',
|
||||
'passive-provider-chest',
|
||||
@@ -353,8 +384,7 @@ if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-CHEST'].value t
|
||||
}
|
||||
|
||||
for _, c in pairs(chests) do
|
||||
local item = table.deepcopy(data.raw['item'][c])
|
||||
local entity
|
||||
item = table.deepcopy(data.raw['item'][c])
|
||||
|
||||
if c == 'steel-chest' then
|
||||
entity = table.deepcopy(data.raw['container'][c])
|
||||
@@ -404,8 +434,53 @@ if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-CHEST'].value t
|
||||
table.insert(data.raw.technology['logistic-system'].effects, {type='unlock-recipe', recipe='basic-' .. r .. '-chest'})
|
||||
end
|
||||
end
|
||||
if settings.startup['PHI-EN'].value and settings.startup['PHI-EN-POWER-TIER'].value > 1 then
|
||||
data.raw['fluid']['steam'].max_temperature = 5000
|
||||
|
||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-HIDDEN'].value then
|
||||
local item = table.deepcopy(data.raw['item']['linked-chest'])
|
||||
item.supgroup = 'storage'
|
||||
item.order = 'a[items]-d[linked-chest]'
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['linked-container']['linked-chest'])
|
||||
entity.circuit_wire_connection_point = data.raw['container']['steel-chest'].circuit_wire_connection_point
|
||||
entity.circuit_connector_sprites = data.raw['container']['steel-chest'].circuit_connector_sprites
|
||||
entity.circuit_wire_max_distance = data.raw['container']['steel-chest'].circuit_wire_max_distance
|
||||
entity.inventory_type = 'with_filters_and_bar'
|
||||
entity.inventory_size = 48
|
||||
entity.gui_mode = 'all'
|
||||
entity.se_allow_in_space = true
|
||||
data:extend({entity})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'linked-chest',
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{type='item', name='steel-chest', amount=1}},
|
||||
results = {{type='item', name='linked-chest', amount=1}},
|
||||
main_product = 'linked-chest'
|
||||
}})
|
||||
|
||||
table.insert(data.raw.technology['steel-processing'].effects, {type='unlock-recipe', recipe='linked-chest'})
|
||||
|
||||
data.raw.recipe['loader'].hidden = false
|
||||
data.raw.recipe['fast-loader'].hidden = false
|
||||
data.raw.recipe['express-loader'].hidden = false
|
||||
|
||||
table.insert(data.raw.technology['logistics'].effects, {type='unlock-recipe', recipe='loader'})
|
||||
table.insert(data.raw.technology['logistics-2'].effects, {type='unlock-recipe', recipe='fast-loader'})
|
||||
table.insert(data.raw.technology['logistics-3'].effects, {type='unlock-recipe', recipe='express-loader'})
|
||||
|
||||
if mods['space-age'] then
|
||||
data.raw.recipe['turbo-loader'].hidden = false
|
||||
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type='unlock-recipe', recipe='turbo-loader'})
|
||||
end
|
||||
end
|
||||
|
||||
if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-EFFCY'].value then
|
||||
data.raw['module']['efficiency-module'].effect = {consumption=-0.4, pollution=-0.4}
|
||||
data.raw['module']['efficiency-module-2'].effect = {consumption=-0.8, pollution=-0.8}
|
||||
data.raw['module']['efficiency-module-3'].effect = {consumption=-1.2, pollution=-1.2}
|
||||
end
|
||||
|
||||
if settings.startup['PHI-MI'].value and (settings.startup['PHI-MI-LANDFILL'].value ~= 50) then
|
||||
@@ -416,195 +491,6 @@ if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-NUCLEAR'].value
|
||||
data.raw['reactor']['nuclear-reactor'].scale_energy_usage = true
|
||||
end
|
||||
|
||||
--[[
|
||||
if settings.startup['PHI-EQ'].value and settings.startup['PHI-EQ-ARMOR'].value then
|
||||
data:extend({
|
||||
{
|
||||
type = 'equipment-grid',
|
||||
name = 'equipment-grid-14x14',
|
||||
width = 14,
|
||||
height = 14,
|
||||
equipment_categories = {'armor'}
|
||||
},
|
||||
{
|
||||
type = 'armor',
|
||||
name = 'power-armor-mk3',
|
||||
icons = {
|
||||
{
|
||||
icon = '__base__/graphics/icons/power-armor-mk2.png',
|
||||
tint = items['tint'][2],
|
||||
icon_size = 64,
|
||||
icon_mipmaps = 4
|
||||
}
|
||||
},
|
||||
resistances = {
|
||||
{
|
||||
type = 'physical',
|
||||
decrease = 20,
|
||||
percent = 50
|
||||
},
|
||||
{
|
||||
type = 'acid',
|
||||
decrease = 20,
|
||||
percent = 80
|
||||
},
|
||||
{
|
||||
type = 'explosion',
|
||||
decrease = 70,
|
||||
percent = 60
|
||||
},
|
||||
{
|
||||
type = 'fire',
|
||||
decrease = 20,
|
||||
percent = 80
|
||||
},
|
||||
{
|
||||
type = 'laser',
|
||||
decrease = 20,
|
||||
percent = 50
|
||||
},
|
||||
{
|
||||
type = 'electric',
|
||||
decrease = 20,
|
||||
percent = 50
|
||||
},
|
||||
{
|
||||
type = 'impact',
|
||||
decrease = 20,
|
||||
percent = 50
|
||||
},
|
||||
{
|
||||
type = 'poison',
|
||||
decrease = 20,
|
||||
percent = 50
|
||||
}
|
||||
},
|
||||
subgroup = 'armor',
|
||||
order = 'eb[power-armor-mk3]',
|
||||
stack_size = 1,
|
||||
infinite = true,
|
||||
equipment_grid = 'equipment-grid-14x14',
|
||||
inventory_size_bonus = 40,
|
||||
open_sound = {filename = '__base__/sound/armor-open.ogg', volume = 1},
|
||||
close_sound = {filename = '__base__/sound/armor-close.ogg', volume = 1},
|
||||
localised_name = {'phi-cl.combine-gen', {'name.power-armor-mk2'}, '3'},
|
||||
localised_description = {'description.power-armor-mk2'}
|
||||
}
|
||||
})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'power-armor-mk3',
|
||||
energy_required = 2,
|
||||
enabled = false,
|
||||
ingredients = {{type='item', name='power-armor-mk2', amount=2}},
|
||||
results = {{type='item', name='power-armor-mk3', amount=1}},
|
||||
main_product = 'power-armor-mk3',
|
||||
localised_name = {'phi-cl.combine-gen', {'name.power-armor-mk2'}, '3'},
|
||||
localised_description = {'description.power-armor-mk2'}
|
||||
}})
|
||||
|
||||
for _, animation in ipairs(data.raw['character']['character']['animations']) do
|
||||
if animation.armors then
|
||||
for _, armor in ipairs(animation.armors) do
|
||||
if armor == 'power-armor-mk2' then
|
||||
animation.armors[#animation.armors + 1] = 'power-armor-mk3'
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
table.insert(data.raw.technology['power-armor-mk2'].effects, {type='unlock-recipe', recipe='power-armor-mk3'})
|
||||
end
|
||||
]]
|
||||
|
||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-FLUID'].value then
|
||||
data:extend({{type='recipe-category', name='fluid'}})
|
||||
|
||||
local item = table.deepcopy(data.raw['item']['offshore-pump'])
|
||||
item.name = 'super-pump'
|
||||
item.place_result = 'super-pump'
|
||||
item.order = 'b[fluids]-a[super-pump]-o'
|
||||
|
||||
item.icons = {
|
||||
{
|
||||
icon = '__base__/graphics/icons/offshore-pump.png',
|
||||
tint = items['tint'][2],
|
||||
icon_size = 64,
|
||||
icon_mipmaps = 4
|
||||
}
|
||||
}
|
||||
|
||||
item.icon = nil
|
||||
item.icon_size = nil
|
||||
item.icon_mipmaps = nil
|
||||
item.localised_name = {'name.super-pump'}
|
||||
item.localised_description = item.localised_description
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['offshore-pump']['offshore-pump'])
|
||||
entity.name = 'super-pump'
|
||||
entity.minable.result = 'super-pump'
|
||||
entity.type = 'assembling-machine'
|
||||
entity.crafting_categories = {'fluid'}
|
||||
entity.crafting_speed = 1
|
||||
entity.energy_source = {type = 'void'}
|
||||
entity.fluid_box.volume = 4000
|
||||
entity.fluid_boxes = {table.deepcopy(entity.fluid_box)}
|
||||
entity.fluid_box = nil
|
||||
entity.fluid_boxes_off_when_no_fluid_recipe = false
|
||||
entity.effect_receiver = {uses_module_effects=false, uses_beacon_effects=false}
|
||||
entity.allowed_effects = {'consumption'}
|
||||
entity.collision_mask = nil
|
||||
entity.tile_buildability_rules = nil
|
||||
entity.fluid_source_offset = nil
|
||||
entity.localised_name = {'name.super-pump'}
|
||||
entity.localised_description = entity.localised_description
|
||||
data:extend({entity})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = 'super-pump',
|
||||
energy_required = 2,
|
||||
enabled = true,
|
||||
ingredients = {{type='item', name='electronic-circuit', amount=2}, {type='item', name='pipe', amount=1}, {type='item', name='iron-gear-wheel', amount=1}},
|
||||
results = {{type='item', name='super-pump', amount=1}},
|
||||
main_product = 'super-pump',
|
||||
localised_name = {'name.super-pump'},
|
||||
localised_description = nil
|
||||
}})
|
||||
|
||||
for _, v in pairs(data.raw.fluid) do
|
||||
if v.subgroup == 'fluid' then
|
||||
local temp
|
||||
|
||||
if v.max_temperature then
|
||||
temp = v.max_temperature
|
||||
|
||||
else
|
||||
temp = v.default_temperature
|
||||
end
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = v.name,
|
||||
category = 'fluid',
|
||||
energy_required = 1,
|
||||
enabled = true,
|
||||
ingredients = {},
|
||||
results = {{type='fluid', name=v.name, amount=16000, temperature=temp}},
|
||||
main_product = v.name,
|
||||
hide_from_player_crafting = true,
|
||||
allow_productivity = false,
|
||||
crafting_machine_tint = {primary=v.flow_color},
|
||||
localised_name = v.localised_name,
|
||||
localised_description = nil
|
||||
}})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for _, v in pairs(items['item']) do
|
||||
if (v.stage == file_stage) and v.enabled and (v.max >= v.min) then
|
||||
v.category = 'item'
|
||||
|
||||
Reference in New Issue
Block a user