mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
.
This commit is contained in:
+20
-17
@@ -151,6 +151,8 @@ if data.raw.fluid['water'] and data.raw.recipe['super-pump-water'] then
|
|||||||
data.raw.recipe['super-pump-water'].hidden = false
|
data.raw.recipe['super-pump-water'].hidden = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- MIG C 5 BASE ENTITY
|
||||||
|
-- MIG C 1 SPACE_AGE ENTITY
|
||||||
for _, v in pairs(data.raw['inserter']) do
|
for _, v in pairs(data.raw['inserter']) do
|
||||||
if v.energy_source and v.energy_source.type and (v.energy_source.type == 'electric' or v.energy_source.type == 'void' or v.energy_source.type == 'burner') then
|
if v.energy_source and v.energy_source.type and (v.energy_source.type == 'electric' or v.energy_source.type == 'void' or v.energy_source.type == 'burner') then
|
||||||
v.allow_custom_vectors = true
|
v.allow_custom_vectors = true
|
||||||
@@ -158,6 +160,24 @@ for _, v in pairs(data.raw['inserter']) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- MIG A 36 BASE VIRTUAL_SIGNAL
|
||||||
|
local vir_sig = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
||||||
|
local s = {}
|
||||||
|
|
||||||
|
for i = 1, #vir_sig do
|
||||||
|
local char = vir_sig:sub(i, i)
|
||||||
|
table.insert(s, {
|
||||||
|
type = 'virtual-signal',
|
||||||
|
name = 'signal-' .. char .. 'A',
|
||||||
|
icon = items['general']['graphics_location'] .. 'signal/signal_' .. char .. '.png',
|
||||||
|
subgroup = (i < 11 and 'virtual-signal-number') or 'virtual-signal-letter',
|
||||||
|
order = ((i < 11 and 'b[numbers]2-[') or 'c[letters]2-[') .. char .. ']',
|
||||||
|
localised_name = {'phi-cl.combine', {'virtual-signal-name.signal-' .. char}, '(II)'}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
data:extend(s)
|
||||||
|
|
||||||
if mods['elevated-rails'] then
|
if mods['elevated-rails'] then
|
||||||
local entity = table.deepcopy(data.raw['electric-pole']['big-electric-pole'])
|
local entity = table.deepcopy(data.raw['electric-pole']['big-electric-pole'])
|
||||||
entity.name = 'rail-support-pole-electric'
|
entity.name = 'rail-support-pole-electric'
|
||||||
@@ -198,23 +218,6 @@ if mods['elevated-rails'] then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local vir_sig = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|
||||||
local s = {}
|
|
||||||
|
|
||||||
for i = 1, #vir_sig do
|
|
||||||
local char = vir_sig:sub(i, i)
|
|
||||||
table.insert(s, {
|
|
||||||
type = 'virtual-signal',
|
|
||||||
name = 'signal-' .. char .. 'A',
|
|
||||||
icon = items['general']['graphics_location'] .. 'signal/signal_' .. char .. '.png',
|
|
||||||
subgroup = string.match(char, '%d') and 'virtual-signal-number' or 'virtual-signal-letter',
|
|
||||||
order = (string.match(char, '%d') and 'b[numbers]2-[' or 'c[letters]2-[') .. char .. ']',
|
|
||||||
localised_name = {'phi-cl.combine', {'virtual-signal-name.signal-' .. char}, '(II)'}
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
data:extend(s)
|
|
||||||
|
|
||||||
if data.raw['container']['steel-chest'] then
|
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'
|
||||||
|
|||||||
Reference in New Issue
Block a user