mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-27 05:46:22 +09:00
.
This commit is contained in:
@@ -19,6 +19,7 @@ for _, v in pairs({'infinity-chest', 'infinity-cargo-wagon', 'infinity-pipe'}) d
|
|||||||
name = data.raw['item'][v].name,
|
name = data.raw['item'][v].name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
categories = {'crafting'},
|
||||||
hidden = true,
|
hidden = true,
|
||||||
hidden_in_factoriopedia = true,
|
hidden_in_factoriopedia = true,
|
||||||
ingredients = {},
|
ingredients = {},
|
||||||
@@ -36,7 +37,6 @@ if data.raw['linked-container'] and data.raw['linked-container']['linked-chest']
|
|||||||
|
|
||||||
data.raw['linked-container']['linked-chest'].circuit_connector = table.deepcopy(data.raw['container']['steel-chest'].circuit_connector)
|
data.raw['linked-container']['linked-chest'].circuit_connector = table.deepcopy(data.raw['container']['steel-chest'].circuit_connector)
|
||||||
data.raw['linked-container']['linked-chest'].circuit_wire_max_distance = data.raw['container']['steel-chest'].circuit_wire_max_distance
|
data.raw['linked-container']['linked-chest'].circuit_wire_max_distance = data.raw['container']['steel-chest'].circuit_wire_max_distance
|
||||||
-- data.raw['linked-container']['linked-chest'].quality_affects_inventory_size = false
|
|
||||||
data.raw['linked-container']['linked-chest'].inventory_type = 'with_filters_and_bar'
|
data.raw['linked-container']['linked-chest'].inventory_type = 'with_filters_and_bar'
|
||||||
data.raw['linked-container']['linked-chest'].inventory_size = data.raw['container']['steel-chest'].inventory_size
|
data.raw['linked-container']['linked-chest'].inventory_size = data.raw['container']['steel-chest'].inventory_size
|
||||||
data.raw['linked-container']['linked-chest'].gui_mode = 'all'
|
data.raw['linked-container']['linked-chest'].gui_mode = 'all'
|
||||||
@@ -47,6 +47,7 @@ if data.raw['linked-container'] and data.raw['linked-container']['linked-chest']
|
|||||||
name = 'linked-chest',
|
name = 'linked-chest',
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
categories = {'crafting'},
|
||||||
hidden = true,
|
hidden = true,
|
||||||
hidden_in_factoriopedia = true,
|
hidden_in_factoriopedia = true,
|
||||||
ingredients = {{type = 'item', name = 'steel-chest', amount = 1}},
|
ingredients = {{type = 'item', name = 'steel-chest', amount = 1}},
|
||||||
@@ -82,6 +83,7 @@ if data.raw['radar'] and data.raw['radar']['radar'] then
|
|||||||
name = item.name,
|
name = item.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
categories = {'crafting'},
|
||||||
hidden = true,
|
hidden = true,
|
||||||
hidden_in_factoriopedia = true,
|
hidden_in_factoriopedia = true,
|
||||||
ingredients = {{type = 'item', name = 'electronic-circuit', amount = 5}, {type = 'item', name = 'iron-gear-wheel', amount = 5}, {type = 'item', name = 'iron-plate', amount = 10}},
|
ingredients = {{type = 'item', name = 'electronic-circuit', amount = 5}, {type = 'item', name = 'iron-gear-wheel', amount = 5}, {type = 'item', name = 'iron-plate', amount = 10}},
|
||||||
@@ -120,6 +122,7 @@ if data.raw['electric-energy-interface'] and data.raw['electric-energy-interface
|
|||||||
name = item.name,
|
name = item.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
categories = {'crafting'},
|
||||||
hidden = true,
|
hidden = true,
|
||||||
hidden_in_factoriopedia = true,
|
hidden_in_factoriopedia = true,
|
||||||
ingredients = {{type = 'item', name = 'accumulator', amount = 1}},
|
ingredients = {{type = 'item', name = 'accumulator', amount = 1}},
|
||||||
|
|||||||
@@ -34,18 +34,18 @@ end
|
|||||||
|
|
||||||
-- GM-SAP C 1 SPACE_AGE ENTITY
|
-- GM-SAP C 1 SPACE_AGE ENTITY
|
||||||
if data.raw['space-platform-hub'] and data.raw['space-platform-hub']['space-platform-hub'] then
|
if data.raw['space-platform-hub'] and data.raw['space-platform-hub']['space-platform-hub'] then
|
||||||
data.raw['space-platform-hub']['space-platform-hub'].platform_repair_speed_modifier = math.max(2, data.raw['space-platform-hub']['space-platform-hub'].platform_repair_speed_modifier)
|
data.raw['space-platform-hub']['space-platform-hub'].platform_repair_speed_modifier = math.max(2, data.raw['space-platform-hub']['space-platform-hub'].platform_repair_speed_modifier or 0)
|
||||||
data.raw['space-platform-hub']['space-platform-hub'].inventory_size = math.max(119, data.raw['space-platform-hub']['space-platform-hub'].inventory_size)
|
data.raw['space-platform-hub']['space-platform-hub'].inventory_size = math.max(119, data.raw['space-platform-hub']['space-platform-hub'].inventory_size or 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- GM-SAP C 1 SPACE_AGE TILE
|
-- GM-SAP C 1 SPACE_AGE TILE
|
||||||
if data.raw.tile['space-platform-foundation'] then
|
if data.raw.tile['space-platform-foundation'] then
|
||||||
data.raw.tile['space-platform-foundation'].max_health = data.raw.tile['space-platform-foundation'].max_health * 2
|
data.raw.tile['space-platform-foundation'].max_health = (data.raw.tile['space-platform-foundation'].max_health or 0) * 2
|
||||||
end
|
end
|
||||||
|
|
||||||
-- GM-SAP C 1 SPACE_AGE ITEM
|
-- GM-SAP C 1 SPACE_AGE ITEM
|
||||||
if data.raw.item['space-platform-foundation'] then
|
if data.raw.item['space-platform-foundation'] then
|
||||||
data.raw.item['space-platform-foundation'].stack_size = math.max(100, data.raw.item['space-platform-foundation'].stack_size)
|
data.raw.item['space-platform-foundation'].stack_size = math.max(100, data.raw.item['space-platform-foundation'].stack_size or 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- GM-SAP A 1 BASE RESEARCH
|
-- GM-SAP A 1 BASE RESEARCH
|
||||||
|
|||||||
@@ -25,17 +25,15 @@ local items = {
|
|||||||
'rail-chain-signal',
|
'rail-chain-signal',
|
||||||
'straight-rail',
|
'straight-rail',
|
||||||
-- BASE 20
|
-- BASE 20
|
||||||
'legacy-curved-rail',
|
|
||||||
'legacy-straight-rail',
|
|
||||||
'curved-rail-a',
|
'curved-rail-a',
|
||||||
'curved-rail-b',
|
'curved-rail-b',
|
||||||
'half-diagonal-rail',
|
'half-diagonal-rail',
|
||||||
|
-- 3X
|
||||||
|
'container',
|
||||||
-- BASE 25
|
-- BASE 25
|
||||||
-- 5X
|
-- 5X
|
||||||
'logistic-container',
|
'logistic-container',
|
||||||
-- BASE 30
|
-- BASE 30
|
||||||
-- 3X
|
|
||||||
'container',
|
|
||||||
-- ELEVATED_RAIL 0
|
-- ELEVATED_RAIL 0
|
||||||
'rail-support',
|
'rail-support',
|
||||||
'rail-ramp',
|
'rail-ramp',
|
||||||
@@ -433,7 +431,7 @@ local items = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
['recipe'] = {
|
['recipe'] = {
|
||||||
-- QUALITY 0
|
-- RECYCLER 0
|
||||||
['recycler'] = true,
|
['recycler'] = true,
|
||||||
-- SPACE_AGE 0
|
-- SPACE_AGE 0
|
||||||
['lightning-collector'] = true,
|
['lightning-collector'] = true,
|
||||||
@@ -502,7 +500,7 @@ local items = {
|
|||||||
['advanced-metallic-asteroid-crushing'] = true,
|
['advanced-metallic-asteroid-crushing'] = true,
|
||||||
},
|
},
|
||||||
['item'] = {
|
['item'] = {
|
||||||
-- QUALITY 0
|
-- RECYCLER 0
|
||||||
['recycler'] = true,
|
['recycler'] = true,
|
||||||
-- SPACE_AGE 0
|
-- SPACE_AGE 0
|
||||||
['artificial-yumako-soil'] = true,
|
['artificial-yumako-soil'] = true,
|
||||||
@@ -580,7 +578,7 @@ local items = {
|
|||||||
'calcite',
|
'calcite',
|
||||||
},
|
},
|
||||||
['hidden'] = {
|
['hidden'] = {
|
||||||
-- QUALITY ENTITY 0
|
-- RECYCLER ENTITY 0
|
||||||
['recycler'] = 'furnace',
|
['recycler'] = 'furnace',
|
||||||
-- SPACE_AGE ENTITY 0
|
-- SPACE_AGE ENTITY 0
|
||||||
['biochamber'] = 'assembling-machine',
|
['biochamber'] = 'assembling-machine',
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ local resource_autoplace = require('resource-autoplace')
|
|||||||
|
|
||||||
mc.space_age()
|
mc.space_age()
|
||||||
|
|
||||||
-- GM-VP C 33 BASE ENTITY
|
-- GM-VP C 31 BASE ENTITY
|
||||||
-- GM-VP C 6 ELEVATED_RAILS ENTITY
|
-- GM-VP C 6 ELEVATED_RAILS ENTITY
|
||||||
-- GM-VP C 17 SPACE_AGE ENTITY
|
-- GM-VP C 17 SPACE_AGE ENTITY
|
||||||
if items['entity_surface_conditions'] then
|
if items['entity_surface_conditions'] then
|
||||||
@@ -72,7 +72,7 @@ data:extend({
|
|||||||
name = 'satellite',
|
name = 'satellite',
|
||||||
energy_required = 5,
|
energy_required = 5,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
category = 'crafting',
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = 'low-density-structure', amount = 100}, {type = 'item', name = 'solar-panel', amount = 100}, {type = 'item', name = 'accumulator', amount = 100}, {type = 'item', name = 'radar', amount = 5}, {type = 'item', name = 'processing-unit', amount = 100}, {type = 'item', name = 'rocket-fuel', amount = 50}},
|
ingredients = {{type = 'item', name = 'low-density-structure', amount = 100}, {type = 'item', name = 'solar-panel', amount = 100}, {type = 'item', name = 'accumulator', amount = 100}, {type = 'item', name = 'radar', amount = 5}, {type = 'item', name = 'processing-unit', amount = 100}, {type = 'item', name = 'rocket-fuel', amount = 50}},
|
||||||
results = {{type = 'item', name = 'satellite', amount = 1}},
|
results = {{type = 'item', name = 'satellite', amount = 1}},
|
||||||
requester_paste_multiplier = 1
|
requester_paste_multiplier = 1
|
||||||
@@ -127,8 +127,8 @@ if data.raw['unit-spawner'] then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- GM-VP H 4 QUALITY QUALITY
|
||||||
-- GM-VP H 20 SPACE_AGE ENTITY
|
-- GM-VP H 20 SPACE_AGE ENTITY
|
||||||
-- GM-VP H 4 SPACE_AGE QUALITY
|
|
||||||
-- GM-VP H 9 SPACE_AGE SPACE_CONNECTION
|
-- GM-VP H 9 SPACE_AGE SPACE_CONNECTION
|
||||||
-- GM-VP H 3 SPACE_AGE SPACE_LOCATION
|
-- GM-VP H 3 SPACE_AGE SPACE_LOCATION
|
||||||
for _, c in pairs({'space-connection', 'space-location', 'asteroid', 'asteroid-chunk', 'quality'}) do
|
for _, c in pairs({'space-connection', 'space-location', 'asteroid', 'asteroid-chunk', 'quality'}) do
|
||||||
@@ -372,7 +372,7 @@ if data.raw.item['ice'] then
|
|||||||
energy_required = 0.5,
|
energy_required = 0.5,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
icon = data.raw.item['ice'].icon,
|
icon = data.raw.item['ice'].icon,
|
||||||
category = 'chemistry',
|
categories = {'chemistry'},
|
||||||
ingredients = {{type = 'fluid', name = 'water', amount = 10, fluidbox_multiplier = 10}},
|
ingredients = {{type = 'fluid', name = 'water', amount = 10, fluidbox_multiplier = 10}},
|
||||||
results = {{type = 'item', name = 'ice', amount = 1}},
|
results = {{type = 'item', name = 'ice', amount = 1}},
|
||||||
main_product = 'ice',
|
main_product = 'ice',
|
||||||
|
|||||||
@@ -1,26 +1,27 @@
|
|||||||
|
|
||||||
-- GM C 1 SPACE_AGE ENTITY
|
-- GM C 1 SPACE_AGE ENTITY
|
||||||
if data.raw['cargo-bay'] and data.raw['cargo-bay']['cargo-bay'] then
|
if data.raw['cargo-bay'] and data.raw['cargo-bay']['cargo-bay'] then
|
||||||
data.raw['cargo-bay']['cargo-bay'].inventory_size_bonus = math.max(40, data.raw['cargo-bay']['cargo-bay'].inventory_size_bonus)
|
data.raw['cargo-bay']['cargo-bay'].inventory_size_bonus = math.max(40, data.raw['cargo-bay']['cargo-bay'].inventory_size_bonus or 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- GM C 1 BASE ENTITY
|
-- GM C 1 BASE ENTITY
|
||||||
if data.raw['rocket-silo'] and data.raw['rocket-silo']['rocket-silo'] then
|
if data.raw['rocket-silo'] and data.raw['rocket-silo']['rocket-silo'] then
|
||||||
data.raw['rocket-silo']['rocket-silo'].to_be_inserted_to_rocket_inventory_size = math.max(60, data.raw['rocket-silo']['rocket-silo'].to_be_inserted_to_rocket_inventory_size)
|
data.raw['rocket-silo']['rocket-silo'].to_be_inserted_to_rocket_inventory_size = math.max(60, data.raw['rocket-silo']['rocket-silo'].to_be_inserted_to_rocket_inventory_size or 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- GM C 1 BASE ENTITY
|
-- GM C 1 BASE ENTITY
|
||||||
if data.raw['rocket-silo-rocket'] and data.raw['rocket-silo-rocket']['rocket-silo-rocket'] then
|
if data.raw['rocket-silo-rocket'] and data.raw['rocket-silo-rocket']['rocket-silo-rocket'] then
|
||||||
data.raw['rocket-silo-rocket']['rocket-silo-rocket'].inventory_size = math.max(60, data.raw['rocket-silo-rocket']['rocket-silo-rocket'].inventory_size)
|
data.raw['rocket-silo-rocket']['rocket-silo-rocket'].inventory_size = math.max(60, data.raw['rocket-silo-rocket']['rocket-silo-rocket'].inventory_size or 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- GM C 1 BASE ENTITY
|
-- GM C 1 BASE ENTITY
|
||||||
if data.raw['cargo-wagon'] and data.raw['cargo-wagon']['cargo-wagon'] then
|
if data.raw['cargo-wagon'] and data.raw['cargo-wagon']['cargo-wagon'] then
|
||||||
data.raw['cargo-wagon']['cargo-wagon'].inventory_size = math.max(80, data.raw['cargo-wagon']['cargo-wagon'].inventory_size)
|
data.raw['cargo-wagon']['cargo-wagon'].inventory_size = math.max(80, data.raw['cargo-wagon']['cargo-wagon'].inventory_size or 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- GM C 1 SPACE_AGE RECIPE
|
-- GM C 1 SPACE_AGE RECIPE
|
||||||
if data.raw.recipe['foundation'] then
|
if data.raw.recipe['foundation'] then
|
||||||
|
data.raw.recipe['foundation'].categories = {'crafting'}
|
||||||
data.raw.recipe['foundation'].ingredients = {{type = 'item', name = 'landfill', amount = 1}, {type = 'item', name = 'refined-concrete', amount = 10}, {type = 'item', name = 'steel-plate', amount = 10}}
|
data.raw.recipe['foundation'].ingredients = {{type = 'item', name = 'landfill', amount = 1}, {type = 'item', name = 'refined-concrete', amount = 10}, {type = 'item', name = 'steel-plate', amount = 10}}
|
||||||
data.raw.recipe['foundation'].results = {{type = 'item', name = 'foundation', amount = 1}}
|
data.raw.recipe['foundation'].results = {{type = 'item', name = 'foundation', amount = 1}}
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -238,6 +238,7 @@ function main_recipe(source, tier)
|
|||||||
icons = table.deepcopy(data.raw.item[source.ref_name].icons),
|
icons = table.deepcopy(data.raw.item[source.ref_name].icons),
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = (tier > source.min and (source.name .. '-' .. (tier - 1))) or source.ref_name, amount = ((source.tech == 'compound-energy' and (source.type == 'solar-panel' or source.type == 'accumulator')) and tonumber(settings.startup['PHI-MB-ENERGY-SOLAR-RATIO'].value) or 4) or 2}},
|
ingredients = {{type = 'item', name = (tier > source.min and (source.name .. '-' .. (tier - 1))) or source.ref_name, amount = ((source.tech == 'compound-energy' and (source.type == 'solar-panel' or source.type == 'accumulator')) and tonumber(settings.startup['PHI-MB-ENERGY-SOLAR-RATIO'].value) or 4) or 2}},
|
||||||
results = {{type = 'item', name = result_name, amount = 1}},
|
results = {{type = 'item', name = result_name, amount = 1}},
|
||||||
main_product = result_name,
|
main_product = result_name,
|
||||||
|
|||||||
@@ -181,9 +181,9 @@ return {
|
|||||||
tech = 'agriculture',
|
tech = 'agriculture',
|
||||||
max = settings.startup['PHI-MB-MACHINE'].value
|
max = settings.startup['PHI-MB-MACHINE'].value
|
||||||
},
|
},
|
||||||
-- MBE A 2 QUALITY ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 RECYCLER ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['recycler'] = {
|
['recycler'] = {
|
||||||
mod = 'quality',
|
mod = 'recycler',
|
||||||
type = 'furnace',
|
type = 'furnace',
|
||||||
name = 'recycler',
|
name = 'recycler',
|
||||||
tech = 'agriculture',
|
tech = 'agriculture',
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
local items = require('mbm-c')
|
local items = require('mbm-c')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local mod_tint = {
|
local mod_tint = {
|
||||||
[2] = {r=140, g=142, b=200},
|
[2] = {r=140, g=142, b=200},
|
||||||
[3] = {r=242, g=161, b=26},
|
[3] = {r=242, g=161, b=26},
|
||||||
@@ -366,6 +364,7 @@ function main_recipe(source, tier)
|
|||||||
icons = table.deepcopy(data.raw.item[source.ref_name].icons),
|
icons = table.deepcopy(data.raw.item[source.ref_name].icons),
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = (tier > source.min and (source.name .. '-' .. (tier - 1))) or source.ref_name, amount = 2}},
|
ingredients = {{type = 'item', name = (tier > source.min and (source.name .. '-' .. (tier - 1))) or source.ref_name, amount = 2}},
|
||||||
results = {{type = 'item', name = result_name, amount = 1}},
|
results = {{type = 'item', name = result_name, amount = 1}},
|
||||||
main_product = result_name,
|
main_product = result_name,
|
||||||
@@ -406,7 +405,7 @@ end
|
|||||||
|
|
||||||
-- MBE A 24 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 24 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
-- MBE A 24 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 24 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
-- MBE A 2 QUALITY ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 RECYCLER ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
for _, v in pairs(items) do
|
for _, v in pairs(items) do
|
||||||
v.mod = v.mod or 'base'
|
v.mod = v.mod or 'base'
|
||||||
v.min = v.min or 2
|
v.min = v.min or 2
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ if settings.startup['PHI-MB-EQUIPMENT-ARMOR'].value then
|
|||||||
name = armor.name,
|
name = armor.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = 'power-armor-mk2', amount = 2}},
|
ingredients = {{type = 'item', name = 'power-armor-mk2', amount = 2}},
|
||||||
results = {{type = 'item', name = armor.name, amount = 1}},
|
results = {{type = 'item', name = armor.name, amount = 1}},
|
||||||
main_product = armor.name,
|
main_product = armor.name,
|
||||||
@@ -83,6 +84,7 @@ if settings.startup['PHI-MB-EQUIPMENT-ARMOR'].value then
|
|||||||
name = armor.name,
|
name = armor.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = 'mech-armor', amount = 2}},
|
ingredients = {{type = 'item', name = 'mech-armor', amount = 2}},
|
||||||
results = {{type = 'item', name = armor.name, amount = 1}},
|
results = {{type = 'item', name = armor.name, amount = 1}},
|
||||||
main_product = armor.name,
|
main_product = armor.name,
|
||||||
@@ -185,6 +187,7 @@ function main_recipe(source, tier)
|
|||||||
icons = table.deepcopy(data.raw.item[source.ref_name].icons),
|
icons = table.deepcopy(data.raw.item[source.ref_name].icons),
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = (tier == source.min and source.ref_name) or (source.name .. '-mk' .. (tier - 1) .. '-equipment'), amount = 2}},
|
ingredients = {{type = 'item', name = (tier == source.min and source.ref_name) or (source.name .. '-mk' .. (tier - 1) .. '-equipment'), amount = 2}},
|
||||||
results = {{type = 'item', name = result_name, amount = 1}},
|
results = {{type = 'item', name = result_name, amount = 1}},
|
||||||
main_product = result_name,
|
main_product = result_name,
|
||||||
|
|||||||
+12
-12
@@ -14,32 +14,32 @@ local items = {
|
|||||||
color = 'blue'
|
color = 'blue'
|
||||||
},
|
},
|
||||||
['automation-science-pack'] = {
|
['automation-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'red'
|
color = 'red'
|
||||||
},
|
},
|
||||||
['logistic-science-pack'] = {
|
['logistic-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'green'
|
color = 'green'
|
||||||
},
|
},
|
||||||
-- BASE ITEM 5
|
-- BASE ITEM 5
|
||||||
['military-science-pack'] = {
|
['military-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'grey'
|
color = 'grey'
|
||||||
},
|
},
|
||||||
['chemical-science-pack'] = {
|
['chemical-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'cyan'
|
color = 'cyan'
|
||||||
},
|
},
|
||||||
['production-science-pack'] = {
|
['production-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'pink'
|
color = 'pink'
|
||||||
},
|
},
|
||||||
['utility-science-pack'] = {
|
['utility-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'yellow'
|
color = 'yellow'
|
||||||
},
|
},
|
||||||
['space-science-pack'] = {
|
['space-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'white'
|
color = 'white'
|
||||||
},
|
},
|
||||||
-- BASE ITEM 10
|
-- BASE ITEM 10
|
||||||
@@ -162,23 +162,23 @@ local items = {
|
|||||||
},
|
},
|
||||||
-- SPACE_AGE ITEM 0
|
-- SPACE_AGE ITEM 0
|
||||||
['metallurgic-science-pack'] = {
|
['metallurgic-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'yellow'
|
color = 'yellow'
|
||||||
},
|
},
|
||||||
['agricultural-science-pack'] = {
|
['agricultural-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'green'
|
color = 'green'
|
||||||
},
|
},
|
||||||
['electromagnetic-science-pack'] = {
|
['electromagnetic-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'pink'
|
color = 'pink'
|
||||||
},
|
},
|
||||||
['cryogenic-science-pack'] = {
|
['cryogenic-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'blue'
|
color = 'blue'
|
||||||
},
|
},
|
||||||
['promethium-science-pack'] = {
|
['promethium-science-pack'] = {
|
||||||
type = 'tool',
|
type = 'item',
|
||||||
color = 'black'
|
color = 'black'
|
||||||
},
|
},
|
||||||
-- SPACE_AGE ITEM 5
|
-- SPACE_AGE ITEM 5
|
||||||
|
|||||||
+10
-1
@@ -90,6 +90,7 @@ if data.raw['valve'] then
|
|||||||
name = v.name,
|
name = v.name,
|
||||||
energy_required = 1,
|
energy_required = 1,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
categories = {'crafting'},
|
||||||
icon = data.raw.item[v.name].icon,
|
icon = data.raw.item[v.name].icon,
|
||||||
icon_size = 64,
|
icon_size = 64,
|
||||||
order = 'zc',
|
order = 'zc',
|
||||||
@@ -150,6 +151,7 @@ if data.raw['offshore-pump'] and data.raw['offshore-pump']['offshore-pump'] then
|
|||||||
name = item.name,
|
name = item.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = 'electronic-circuit', amount = 2}, {type = 'item', name = 'pipe', amount = 1}, {type = 'item', name = 'iron-gear-wheel', amount = 1}},
|
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 = item.name, amount = 1}},
|
results = {{type = 'item', name = item.name, amount = 1}},
|
||||||
main_product = item.name,
|
main_product = item.name,
|
||||||
@@ -211,7 +213,7 @@ for _, v in pairs(data.raw.fluid) do
|
|||||||
data:extend({{
|
data:extend({{
|
||||||
type = 'recipe',
|
type = 'recipe',
|
||||||
name = 'super-pump-' .. v.name,
|
name = 'super-pump-' .. v.name,
|
||||||
category = 'super-pump-fluid',
|
categories = {'super-pump-fluid'},
|
||||||
energy_required = 1,
|
energy_required = 1,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
ingredients = {},
|
ingredients = {},
|
||||||
@@ -373,6 +375,7 @@ if data.raw['container'] and data.raw['container']['steel-chest'] then
|
|||||||
name = item.name,
|
name = item.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = (data.raw.technology['steel-processing'] and false) or true,
|
enabled = (data.raw.technology['steel-processing'] and false) or true,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = 'steel-chest', amount = 1}},
|
ingredients = {{type = 'item', name = 'steel-chest', amount = 1}},
|
||||||
results = {{type = 'item', name = item.name, amount = 1}},
|
results = {{type = 'item', name = item.name, amount = 1}},
|
||||||
main_product = item.name,
|
main_product = item.name,
|
||||||
@@ -422,6 +425,7 @@ if data.raw['pipe'] and data.raw['pipe']['pipe'] then
|
|||||||
name = item.name,
|
name = item.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = (data.raw.technology['automation'] and false) or true,
|
enabled = (data.raw.technology['automation'] and false) or true,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = 'iron-plate', amount = 1}},
|
ingredients = {{type = 'item', name = 'iron-plate', amount = 1}},
|
||||||
results = {{type = 'item', name = item.name, amount = 1}},
|
results = {{type = 'item', name = item.name, amount = 1}},
|
||||||
main_product = item.name,
|
main_product = item.name,
|
||||||
@@ -471,6 +475,7 @@ if data.raw['boiler'] and data.raw['boiler']['boiler'] then
|
|||||||
name = item.name,
|
name = item.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = 'boiler', amount = 1}, {type = 'item', name = 'electronic-circuit', amount = 1}},
|
ingredients = {{type = 'item', name = 'boiler', amount = 1}, {type = 'item', name = 'electronic-circuit', amount = 1}},
|
||||||
results = {{type = 'item', name = item.name, amount = 1}},
|
results = {{type = 'item', name = item.name, amount = 1}},
|
||||||
main_product = item.name,
|
main_product = item.name,
|
||||||
@@ -610,6 +615,7 @@ if data.raw['reactor'] and data.raw['reactor']['heating-tower'] then
|
|||||||
name = item.name,
|
name = item.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = 'heating-tower', amount = 1}, {type = 'item', name = 'electronic-circuit', amount = 1}},
|
ingredients = {{type = 'item', name = 'heating-tower', amount = 1}, {type = 'item', name = 'electronic-circuit', amount = 1}},
|
||||||
results = {{type = 'item', name = item.name, amount = 1}},
|
results = {{type = 'item', name = item.name, amount = 1}},
|
||||||
main_product = item.name,
|
main_product = item.name,
|
||||||
@@ -639,6 +645,7 @@ if data.raw.item['depleted-uranium-fuel-cell'] and data.raw.item['nuclear-fuel']
|
|||||||
name = 'empty-train-battery',
|
name = 'empty-train-battery',
|
||||||
energy_required = 20,
|
energy_required = 20,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
categories = {'crafting'},
|
||||||
icon = mod_graphic_location .. 'battery.png',
|
icon = mod_graphic_location .. 'battery.png',
|
||||||
icon_size = 64,
|
icon_size = 64,
|
||||||
subgroup = 'intermediate-product',
|
subgroup = 'intermediate-product',
|
||||||
@@ -666,6 +673,7 @@ if data.raw.item['depleted-uranium-fuel-cell'] and data.raw.item['nuclear-fuel']
|
|||||||
name = 'charged-train-battery',
|
name = 'charged-train-battery',
|
||||||
energy_required = 30,
|
energy_required = 30,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
categories = {'crafting'},
|
||||||
icon = mod_graphic_location .. 'battery.png',
|
icon = mod_graphic_location .. 'battery.png',
|
||||||
icon_size = 64,
|
icon_size = 64,
|
||||||
subgroup = 'intermediate-product',
|
subgroup = 'intermediate-product',
|
||||||
@@ -716,6 +724,7 @@ if data.raw['container'] and data.raw['container']['steel-chest'] and data.raw['
|
|||||||
name = item.name,
|
name = item.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = (data.raw.technology['rocket-silo'] and false) or true,
|
enabled = (data.raw.technology['rocket-silo'] and false) or true,
|
||||||
|
categories = {'crafting'},
|
||||||
ingredients = {{type = 'item', name = 'steel-chest', amount = 1}},
|
ingredients = {{type = 'item', name = 'steel-chest', amount = 1}},
|
||||||
results = {{type = 'item', name = item.name, amount = 1}},
|
results = {{type = 'item', name = item.name, amount = 1}},
|
||||||
main_product = item.name
|
main_product = item.name
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ local function spoil_freeze_handle(i)
|
|||||||
name = item.name,
|
name = item.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
category = 'cryogenics',
|
categories = {'cryogenics'},
|
||||||
ingredients = {{type = 'item', name = i.name, amount = 1}, {type = 'fluid', name = 'fluoroketone-cold', amount = 2, ignored_by_stats = 2}},
|
ingredients = {{type = 'item', name = i.name, amount = 1}, {type = 'fluid', name = 'fluoroketone-cold', amount = 2, ignored_by_stats = 2}},
|
||||||
results = {{type = 'item', name = item.name, amount = 1}, {type = 'fluid', name = 'fluoroketone-hot', amount = 2, ignored_by_stats=2, ignored_by_productivity = 2}},
|
results = {{type = 'item', name = item.name, amount = 1}, {type = 'fluid', name = 'fluoroketone-hot', amount = 2, ignored_by_stats=2, ignored_by_productivity = 2}},
|
||||||
allow_productivity = false,
|
allow_productivity = false,
|
||||||
@@ -40,7 +40,7 @@ local function spoil_freeze_handle(i)
|
|||||||
name = 'unfreeze-' .. i.name,
|
name = 'unfreeze-' .. i.name,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
category = 'cryogenics',
|
categories = {'cryogenics'},
|
||||||
ingredients = {{type = 'item', name = item.name, amount = 1}},
|
ingredients = {{type = 'item', name = item.name, amount = 1}},
|
||||||
results = {{type = 'item', name = i.name, amount = 1}},
|
results = {{type = 'item', name = i.name, amount = 1}},
|
||||||
allow_productivity = false,
|
allow_productivity = false,
|
||||||
@@ -89,7 +89,7 @@ if (settings.startup['PHI-SA'].value and (not settings.startup['PHI-SA-SPOIL'].v
|
|||||||
data:extend({{
|
data:extend({{
|
||||||
type = 'recipe',
|
type = 'recipe',
|
||||||
name = 'spoilage-from-nutrients',
|
name = 'spoilage-from-nutrients',
|
||||||
category = 'organic-or-assembling',
|
categories = {'organic'},
|
||||||
subgroup = 'agriculture-processes',
|
subgroup = 'agriculture-processes',
|
||||||
order = 'c[nutrients]-z',
|
order = 'c[nutrients]-z',
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
|
|||||||
Reference in New Issue
Block a user