mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -1349,6 +1349,7 @@ if settings.startup['PHI-CT'].value or (settings.startup['PHI-GM'].value and set
|
|||||||
|
|
||||||
data:extend(s)
|
data:extend(s)
|
||||||
|
|
||||||
|
if data.raw['container']['steel-chest'] then
|
||||||
local item = table.deepcopy(data.raw['item']['steel-chest'])
|
local item = table.deepcopy(data.raw['item']['steel-chest'])
|
||||||
item.name = 'trash-chest'
|
item.name = 'trash-chest'
|
||||||
item.place_result = item.name
|
item.place_result = item.name
|
||||||
@@ -1392,8 +1393,10 @@ if settings.startup['PHI-CT'].value or (settings.startup['PHI-GM'].value and set
|
|||||||
}})
|
}})
|
||||||
|
|
||||||
table.insert(data.raw.technology['steel-processing'].effects, {type = 'unlock-recipe', recipe = item.name})
|
table.insert(data.raw.technology['steel-processing'].effects, {type = 'unlock-recipe', recipe = item.name})
|
||||||
|
end
|
||||||
|
|
||||||
item = table.deepcopy(data.raw['item']['pipe'])
|
if data.raw['pipe']['pipe'] then
|
||||||
|
local item = table.deepcopy(data.raw['item']['pipe'])
|
||||||
item.name = 'trash-pipe'
|
item.name = 'trash-pipe'
|
||||||
item.place_result = item.name
|
item.place_result = item.name
|
||||||
item.subgroup = 'energy-pipe-distribution'
|
item.subgroup = 'energy-pipe-distribution'
|
||||||
@@ -1405,7 +1408,7 @@ if settings.startup['PHI-CT'].value or (settings.startup['PHI-GM'].value and set
|
|||||||
item.localised_name = {'', {'name.trash-entity'}, {'entity-name.pipe'}}
|
item.localised_name = {'', {'name.trash-entity'}, {'entity-name.pipe'}}
|
||||||
data:extend({item})
|
data:extend({item})
|
||||||
|
|
||||||
entity = table.deepcopy(data.raw['pipe']['pipe'])
|
local entity = table.deepcopy(data.raw['pipe']['pipe'])
|
||||||
entity.name = item.name
|
entity.name = item.name
|
||||||
entity.minable.result = item.name
|
entity.minable.result = item.name
|
||||||
entity.type = 'infinity-pipe'
|
entity.type = 'infinity-pipe'
|
||||||
@@ -1436,8 +1439,10 @@ if settings.startup['PHI-CT'].value or (settings.startup['PHI-GM'].value and set
|
|||||||
}})
|
}})
|
||||||
|
|
||||||
table.insert(data.raw.technology['automation'].effects, {type = 'unlock-recipe', recipe = item.name})
|
table.insert(data.raw.technology['automation'].effects, {type = 'unlock-recipe', recipe = item.name})
|
||||||
|
end
|
||||||
|
|
||||||
item = table.deepcopy(data.raw['item']['boiler'])
|
if data.raw['boiler']['boiler'] then
|
||||||
|
local item = table.deepcopy(data.raw['item']['boiler'])
|
||||||
item.name = 'electric-boiler'
|
item.name = 'electric-boiler'
|
||||||
item.place_result = item.name
|
item.place_result = item.name
|
||||||
item.subgroup = 'energy'
|
item.subgroup = 'energy'
|
||||||
@@ -1445,7 +1450,7 @@ if settings.startup['PHI-CT'].value or (settings.startup['PHI-GM'].value and set
|
|||||||
item.localised_name = {'', {'name.electric-entity'}, {'entity-name.boiler'}}
|
item.localised_name = {'', {'name.electric-entity'}, {'entity-name.boiler'}}
|
||||||
data:extend({item})
|
data:extend({item})
|
||||||
|
|
||||||
entity = table.deepcopy(data.raw['boiler']['boiler'])
|
local entity = table.deepcopy(data.raw['boiler']['boiler'])
|
||||||
entity.name = item.name
|
entity.name = item.name
|
||||||
entity.energy_consumption = '7200kW'
|
entity.energy_consumption = '7200kW'
|
||||||
entity.buffer_capacity = '14400kJ'
|
entity.buffer_capacity = '14400kJ'
|
||||||
@@ -1482,9 +1487,10 @@ if settings.startup['PHI-CT'].value or (settings.startup['PHI-GM'].value and set
|
|||||||
|
|
||||||
data.raw['boiler']['boiler'].fast_replaceable_group = 'boiler'
|
data.raw['boiler']['boiler'].fast_replaceable_group = 'boiler'
|
||||||
data.raw['boiler']['electric-boiler'].fast_replaceable_group = data.raw['boiler']['boiler'].fast_replaceable_group
|
data.raw['boiler']['electric-boiler'].fast_replaceable_group = data.raw['boiler']['boiler'].fast_replaceable_group
|
||||||
|
end
|
||||||
|
|
||||||
if data.raw['reactor']['heating-tower'] then
|
if data.raw['reactor']['heating-tower'] then
|
||||||
item = table.deepcopy(data.raw['item']['heating-tower'])
|
local item = table.deepcopy(data.raw['item']['heating-tower'])
|
||||||
item.name = 'electric-heating-tower'
|
item.name = 'electric-heating-tower'
|
||||||
item.place_result = item.name
|
item.place_result = item.name
|
||||||
item.subgroup = 'environmental-protection'
|
item.subgroup = 'environmental-protection'
|
||||||
@@ -1492,7 +1498,7 @@ if settings.startup['PHI-CT'].value or (settings.startup['PHI-GM'].value and set
|
|||||||
item.localised_name = {'', {'name.electric-entity'}, {'entity-name.heating-tower'}}
|
item.localised_name = {'', {'name.electric-entity'}, {'entity-name.heating-tower'}}
|
||||||
data:extend({item})
|
data:extend({item})
|
||||||
|
|
||||||
entity = table.deepcopy(data.raw['reactor']['heating-tower'])
|
local entity = table.deepcopy(data.raw['reactor']['heating-tower'])
|
||||||
entity.name = item.name
|
entity.name = item.name
|
||||||
entity.consumption = '160MW'
|
entity.consumption = '160MW'
|
||||||
entity.buffer_capacity = '320MJ'
|
entity.buffer_capacity = '320MJ'
|
||||||
@@ -1546,6 +1552,7 @@ if settings.startup['PHI-CT'].value then
|
|||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if data.raw['radar']['radar'] then
|
||||||
local item = table.deepcopy(data.raw['item']['radar'])
|
local item = table.deepcopy(data.raw['item']['radar'])
|
||||||
item.name = 'super-radar'
|
item.name = 'super-radar'
|
||||||
item.place_result = item.name
|
item.place_result = item.name
|
||||||
@@ -1576,15 +1583,17 @@ if settings.startup['PHI-CT'].value then
|
|||||||
main_product = item.name,
|
main_product = item.name,
|
||||||
localised_name = {'', {'name.super-entity'}, {'entity-name.radar'}}
|
localised_name = {'', {'name.super-entity'}, {'entity-name.radar'}}
|
||||||
}})
|
}})
|
||||||
|
end
|
||||||
|
|
||||||
item = table.deepcopy(data.raw['item']['electric-energy-interface'])
|
if data.raw['electric-energy-interface']['electric-energy-interface'] then
|
||||||
|
local item = table.deepcopy(data.raw['item']['electric-energy-interface'])
|
||||||
item.name = 'passive-energy-void'
|
item.name = 'passive-energy-void'
|
||||||
item.place_result = item.name
|
item.place_result = item.name
|
||||||
item.subgroup = 'energy'
|
item.subgroup = 'energy'
|
||||||
item.localised_name = {'name.passive-energy-void'}
|
item.localised_name = {'name.passive-energy-void'}
|
||||||
data:extend({item})
|
data:extend({item})
|
||||||
|
|
||||||
entity = table.deepcopy(data.raw['electric-energy-interface']['electric-energy-interface'])
|
local entity = table.deepcopy(data.raw['electric-energy-interface']['electric-energy-interface'])
|
||||||
entity.name = item.name
|
entity.name = item.name
|
||||||
entity.minable.result = item.name
|
entity.minable.result = item.name
|
||||||
entity.energy_source.usage_priority = 'tertiary'
|
entity.energy_source.usage_priority = 'tertiary'
|
||||||
@@ -1608,14 +1617,16 @@ if settings.startup['PHI-CT'].value then
|
|||||||
main_product = item.name,
|
main_product = item.name,
|
||||||
localised_name = {'name.passive-energy-void'}
|
localised_name = {'name.passive-energy-void'}
|
||||||
}})
|
}})
|
||||||
|
end
|
||||||
|
|
||||||
item = table.deepcopy(data.raw['item']['linked-chest'])
|
if data.raw['linked-container']['linked-chest'] then
|
||||||
|
local item = table.deepcopy(data.raw['item']['linked-chest'])
|
||||||
item.subgroup = 'storage'
|
item.subgroup = 'storage'
|
||||||
item.order = 'a[items]-d[linked-chest]'
|
item.order = 'a[items]-d[linked-chest]'
|
||||||
item.stack_size = 50
|
item.stack_size = 50
|
||||||
data:extend({item})
|
data:extend({item})
|
||||||
|
|
||||||
entity = table.deepcopy(data.raw['linked-container']['linked-chest'])
|
local entity = table.deepcopy(data.raw['linked-container']['linked-chest'])
|
||||||
entity.circuit_connector = table.deepcopy(data.raw['container']['steel-chest'].circuit_connector)
|
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.circuit_wire_max_distance = data.raw['container']['steel-chest'].circuit_wire_max_distance
|
||||||
entity.quality_affects_inventory_size = false
|
entity.quality_affects_inventory_size = false
|
||||||
@@ -1634,6 +1645,7 @@ if settings.startup['PHI-CT'].value then
|
|||||||
results = {{type = 'item', name = item.name, amount = 1}},
|
results = {{type = 'item', name = item.name, amount = 1}},
|
||||||
main_product = item.name
|
main_product = item.name
|
||||||
}})
|
}})
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
for _, c in pairs({'steel-chest', 'passive-provider-chest', 'active-provider-chest', 'storage-chest', 'buffer-chest', 'requester-chest'}) do
|
for _, c in pairs({'steel-chest', 'passive-provider-chest', 'active-provider-chest', 'storage-chest', 'buffer-chest', 'requester-chest'}) do
|
||||||
|
|||||||
Reference in New Issue
Block a user