mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -1331,7 +1331,6 @@ if settings.startup['PHI-CT'].value then
|
||||
}})
|
||||
end
|
||||
|
||||
do
|
||||
local item = table.deepcopy(data.raw['item']['radar'])
|
||||
item.name = 'super-radar'
|
||||
item.place_result = item.name
|
||||
@@ -1362,17 +1361,15 @@ if settings.startup['PHI-CT'].value then
|
||||
main_product = item.name,
|
||||
localised_name = {'name.super-radar'}
|
||||
}})
|
||||
end
|
||||
|
||||
do
|
||||
local item = table.deepcopy(data.raw['item']['electric-energy-interface'])
|
||||
item = table.deepcopy(data.raw['item']['electric-energy-interface'])
|
||||
item.name = 'passive-energy-void'
|
||||
item.place_result = item.name
|
||||
item.subgroup = 'energy'
|
||||
item.localised_name = {'name.passive-energy-void'}
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['electric-energy-interface']['electric-energy-interface'])
|
||||
entity = table.deepcopy(data.raw['electric-energy-interface']['electric-energy-interface'])
|
||||
entity.name = item.name
|
||||
entity.minable.result = item.name
|
||||
entity.energy_source.usage_priority = 'tertiary'
|
||||
@@ -1396,16 +1393,14 @@ if settings.startup['PHI-CT'].value then
|
||||
main_product = item.name,
|
||||
localised_name = {'name.passive-energy-void'}
|
||||
}})
|
||||
end
|
||||
|
||||
do
|
||||
local item = table.deepcopy(data.raw['item']['linked-chest'])
|
||||
item = table.deepcopy(data.raw['item']['linked-chest'])
|
||||
item.subgroup = 'storage'
|
||||
item.order = 'a[items]-d[linked-chest]'
|
||||
item.stack_size = 50
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['linked-container']['linked-chest'])
|
||||
entity = table.deepcopy(data.raw['linked-container']['linked-chest'])
|
||||
entity.circuit_connector = table.deepcopy(data.raw['container']['steel-chest'].circuit_connector)
|
||||
entity.circuit_wire_max_distance = data.raw['container']['steel-chest'].circuit_wire_max_distance
|
||||
entity.quality_affects_inventory_size = false
|
||||
@@ -1424,10 +1419,8 @@ if settings.startup['PHI-CT'].value then
|
||||
results = {{type = 'item', name = item.name, amount = 1}},
|
||||
main_product = item.name
|
||||
}})
|
||||
end
|
||||
|
||||
do
|
||||
local item = table.deepcopy(data.raw['item']['steel-chest'])
|
||||
item = table.deepcopy(data.raw['item']['steel-chest'])
|
||||
item.name = 'trash-chest'
|
||||
item.place_result = item.name
|
||||
item.subgroup = 'storage'
|
||||
@@ -1439,7 +1432,7 @@ if settings.startup['PHI-CT'].value then
|
||||
item.localised_name = {'name.trash-chest'}
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['container']['steel-chest'])
|
||||
entity = table.deepcopy(data.raw['container']['steel-chest'])
|
||||
entity.name = item.name
|
||||
entity.minable.result = item.name
|
||||
entity.inventory_type = 'with_filters_and_bar'
|
||||
@@ -1470,10 +1463,8 @@ if settings.startup['PHI-CT'].value then
|
||||
}})
|
||||
|
||||
table.insert(data.raw.technology['steel-processing'].effects, {type = 'unlock-recipe', recipe = item.name})
|
||||
end
|
||||
|
||||
do
|
||||
local item = table.deepcopy(data.raw['item']['pipe'])
|
||||
item = table.deepcopy(data.raw['item']['pipe'])
|
||||
item.name = 'trash-pipe'
|
||||
item.place_result = item.name
|
||||
item.subgroup = 'energy-pipe-distribution'
|
||||
@@ -1485,7 +1476,7 @@ if settings.startup['PHI-CT'].value then
|
||||
item.localised_name = {'name.trash-pipe'}
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['pipe']['pipe'])
|
||||
entity = table.deepcopy(data.raw['pipe']['pipe'])
|
||||
entity.name = item.name
|
||||
entity.minable.result = item.name
|
||||
entity.type = 'infinity-pipe'
|
||||
@@ -1516,10 +1507,8 @@ if settings.startup['PHI-CT'].value then
|
||||
}})
|
||||
|
||||
table.insert(data.raw.technology['automation'].effects, {type = 'unlock-recipe', recipe = item.name})
|
||||
end
|
||||
|
||||
do
|
||||
local item = table.deepcopy(data.raw['item']['boiler'])
|
||||
item = table.deepcopy(data.raw['item']['boiler'])
|
||||
item.name = 'electric-boiler'
|
||||
item.place_result = item.name
|
||||
item.subgroup = 'energy'
|
||||
@@ -1527,7 +1516,7 @@ if settings.startup['PHI-CT'].value then
|
||||
item.localised_name = {'name.electric-boiler'}
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['boiler']['boiler'])
|
||||
entity = table.deepcopy(data.raw['boiler']['boiler'])
|
||||
entity.name = item.name
|
||||
entity.energy_consumption = '7200kW'
|
||||
entity.buffer_capacity = '14400kJ'
|
||||
@@ -1564,11 +1553,9 @@ if settings.startup['PHI-CT'].value then
|
||||
|
||||
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
|
||||
|
||||
do
|
||||
for _, c in pairs({'steel-chest', 'passive-provider-chest', 'active-provider-chest', 'storage-chest', 'buffer-chest', 'requester-chest'}) do
|
||||
local item = table.deepcopy(data.raw['item'][c])
|
||||
item = table.deepcopy(data.raw['item'][c])
|
||||
item.name = 'basic-' .. c
|
||||
item.place_result = item.name
|
||||
item.subgroup = 'storage'
|
||||
@@ -1576,7 +1563,7 @@ if settings.startup['PHI-CT'].value then
|
||||
item.localised_name = {'name.basic-' .. c}
|
||||
data:extend({item})
|
||||
|
||||
local entity = (c == 'steel-chest' and table.deepcopy(data.raw['container'][c])) or table.deepcopy(data.raw['logistic-container'][c])
|
||||
entity = (c == 'steel-chest' and table.deepcopy(data.raw['container'][c])) or table.deepcopy(data.raw['logistic-container'][c])
|
||||
entity.name = item.name
|
||||
entity.minable.result = item.name
|
||||
entity.inventory_type = 'with_filters_and_bar'
|
||||
@@ -1610,7 +1597,6 @@ if settings.startup['PHI-CT'].value then
|
||||
for _, r in pairs({'active-provider', 'buffer', 'requester'}) do
|
||||
table.insert(data.raw.technology['logistic-system'].effects, {type = 'unlock-recipe', recipe = 'basic-' .. r .. '-chest'})
|
||||
end
|
||||
end
|
||||
|
||||
for _, l in pairs({'loader', 'fast-loader', 'express-loader', 'turbo-loader'}) do
|
||||
if data.raw.recipe[l] and data.raw['loader'][l] then
|
||||
@@ -1629,17 +1615,16 @@ if settings.startup['PHI-CT'].value then
|
||||
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'})
|
||||
|
||||
do
|
||||
for _, v in pairs({'underground-belt', 'fast-underground-belt', 'express-underground-belt', 'turbo-underground-belt'}) do
|
||||
if data.raw.item[v] then
|
||||
local item = table.deepcopy(data.raw.item[v])
|
||||
item = table.deepcopy(data.raw.item[v])
|
||||
item.name = v .. '-a'
|
||||
item.place_result = item.name
|
||||
item.localised_name = {'phi-cl.combine', {'entity-name.' .. v}, '(II)'}
|
||||
item.localised_description = {'entity-description.' .. v}
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['underground-belt'][v])
|
||||
entity = table.deepcopy(data.raw['underground-belt'][v])
|
||||
entity.name = item.name
|
||||
entity.minable.result = item.name
|
||||
entity.next_upgrade = nil
|
||||
@@ -1684,7 +1669,6 @@ if settings.startup['PHI-CT'].value then
|
||||
data.raw['underground-belt']['express-underground-belt-a'].next_upgrade = 'turbo-underground-belt-a'
|
||||
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-underground-belt-a'})
|
||||
end
|
||||
end
|
||||
|
||||
for _, t in pairs({'arithmetic-combinator', 'decider-combinator', 'programmable-speaker', 'selector-combinator'}) do
|
||||
data.raw[t][t].energy_source.usage_priority = 'primary-input'
|
||||
|
||||
Reference in New Issue
Block a user