mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 02:55:22 +09:00
.
This commit is contained in:
@@ -288,6 +288,36 @@ if (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].valu
|
||||
}})
|
||||
end
|
||||
|
||||
if data.raw['constant-combinator']['constant-combinator'] then
|
||||
local item = table.deepcopy(data.raw['item']['constant-combinator'])
|
||||
item.name = 'super-combinator'
|
||||
item.place_result = item.name
|
||||
item.order = 'c[combinators]-e[super-combinator]'
|
||||
item.icons = {{icon = '__base__/graphics/icons/constant-combinator.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-entity'}, {'entity-name.constant-combinator'}}
|
||||
data:extend({item})
|
||||
|
||||
local entity = table.deepcopy(data.raw['constant-combinator']['constant-combinator'])
|
||||
entity.name = item.name
|
||||
entity.minable.result = item.name
|
||||
entity.localised_name = {'', {'name.super-entity'}, {'entity-name.constant-combinator'}}
|
||||
data:extend({entity})
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = item.name,
|
||||
energy_required = 2,
|
||||
enabled = true,
|
||||
ingredients = {{type = 'item', name = 'electronic-circuit', amount = 5}, {type = 'item', name = 'copper-wire', amount = 5}},
|
||||
results = {{type = 'item', name = item.name, amount = 1}},
|
||||
main_product = item.name,
|
||||
localised_name = {'', {'name.super-entity'}, {'entity-name.constant-combinator'}}
|
||||
}})
|
||||
end
|
||||
|
||||
for _, v in pairs(data.raw['inserter']) do
|
||||
if v.energy_source and (v.energy_source == 'electric' or v.energy_source == 'void' or v.energy_source == 'burner') then
|
||||
v.allow_custom_vectors = true
|
||||
|
||||
Reference in New Issue
Block a user