mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
@@ -117,6 +117,7 @@ local function hidden_recipe_enable(event)
|
||||
end
|
||||
end
|
||||
|
||||
-- settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'SAP'
|
||||
local function entity_build(event)
|
||||
if event.entity.type == 'rail-support' then
|
||||
for _, v in pairs(rail_support_pole) do
|
||||
|
||||
@@ -178,7 +178,8 @@ end
|
||||
|
||||
data:extend(s)
|
||||
|
||||
if mods['elevated-rails'] then
|
||||
-- MIG A 1 ELEVATED_RAILS ENTITY
|
||||
if mods['elevated-rails'] and data.raw['electric-pole']['big-electric-pole'] then
|
||||
local entity = table.deepcopy(data.raw['electric-pole']['big-electric-pole'])
|
||||
entity.name = 'rail-support-pole-electric'
|
||||
entity.hidden = true
|
||||
@@ -197,10 +198,13 @@ if mods['elevated-rails'] then
|
||||
entity.selection_priority = 49
|
||||
entity.order = 'zz'
|
||||
data:extend({entity})
|
||||
end
|
||||
|
||||
if (not (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'VP')) and mods['space-age'] and data.raw['lightning-attractor']['lightning-rod'] then
|
||||
entity = table.deepcopy(data.raw['lightning-attractor']['lightning-rod'])
|
||||
-- MIG A 1 SPACE_AGE ENTITY
|
||||
if mods['space-age'] and data.raw['lightning-attractor']['lightning-rod'] then
|
||||
local entity = table.deepcopy(data.raw['lightning-attractor']['lightning-rod'])
|
||||
entity.name = 'rail-support-pole-lightning'
|
||||
entity.enabled = false
|
||||
entity.hidden = true
|
||||
entity.hidden_in_factoriopedia = true
|
||||
entity.minable.result = nil
|
||||
@@ -215,7 +219,6 @@ if mods['elevated-rails'] then
|
||||
entity.selection_priority = 49
|
||||
entity.order = 'zz'
|
||||
data:extend({entity})
|
||||
end
|
||||
end
|
||||
|
||||
if data.raw['container']['steel-chest'] then
|
||||
|
||||
Reference in New Issue
Block a user