mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-19 18:28:13 +09:00
.
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
local mod_tint = {
|
||||
[2] = {r=140, g=142, b=200},
|
||||
[3] = {r=242, g=161, b=26},
|
||||
[4] = {r=255, g=254, b=42},
|
||||
[5] = {r=54, g=228, b=255},
|
||||
[6] = {r=253, g=0, b=97},
|
||||
[7] = {r=0, g=209, b=102},
|
||||
[8] = {r=233, g=63, b=233}
|
||||
}
|
||||
|
||||
-- MIGS A 1 BASE ENTITY,ITEM,RECIPE
|
||||
-- MIGS A 9 BASE VIRTUAL_SIGNAL
|
||||
-- MIGS A 15 SPACE_AGE VIRTUAL_SIGNAL
|
||||
if data.raw['constant-combinator'] and 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 = mod_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-cable', amount = 5}},
|
||||
results = {{type = 'item', name = item.name, amount = 1}},
|
||||
main_product = item.name,
|
||||
localised_name = {'', {'name.super-entity'}, {'entity-name.constant-combinator'}}
|
||||
}})
|
||||
|
||||
local s = {}
|
||||
|
||||
for _, v in pairs(data.raw['technology']) do
|
||||
local raw_name = v.name:gsub('-%d+$', '')
|
||||
|
||||
if (v.max_level and v.max_level == 'infinite') and v.hidden ~= true then
|
||||
table.insert(s, {
|
||||
type = 'virtual-signal',
|
||||
name = 'signal-' .. v.name,
|
||||
icons = (v.icons and {v.icons[1]}) or nil,
|
||||
icon = (v.icon and v.icon) or nil,
|
||||
icon_size = (v.icon_size and v.icon_size) or nil,
|
||||
subgroup = 'pictographs',
|
||||
order = 'z[technology]-[' .. v.name .. ']',
|
||||
localised_name = {'?', {'technology-name.' .. raw_name}, {'entity-name.' .. raw_name}}
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
if #s > 0 then
|
||||
data:extend(s)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user