mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-13 05:08:44 +09:00
@@ -117,6 +117,7 @@ local function hidden_recipe_enable(event)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'SAP'
|
||||||
local function entity_build(event)
|
local function entity_build(event)
|
||||||
if event.entity.type == 'rail-support' then
|
if event.entity.type == 'rail-support' then
|
||||||
for _, v in pairs(rail_support_pole) do
|
for _, v in pairs(rail_support_pole) do
|
||||||
|
|||||||
+22
-19
@@ -178,7 +178,8 @@ end
|
|||||||
|
|
||||||
data:extend(s)
|
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'])
|
local entity = table.deepcopy(data.raw['electric-pole']['big-electric-pole'])
|
||||||
entity.name = 'rail-support-pole-electric'
|
entity.name = 'rail-support-pole-electric'
|
||||||
entity.hidden = true
|
entity.hidden = true
|
||||||
@@ -197,25 +198,27 @@ if mods['elevated-rails'] then
|
|||||||
entity.selection_priority = 49
|
entity.selection_priority = 49
|
||||||
entity.order = 'zz'
|
entity.order = 'zz'
|
||||||
data:extend({entity})
|
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
|
-- MIG A 1 SPACE_AGE ENTITY
|
||||||
entity = table.deepcopy(data.raw['lightning-attractor']['lightning-rod'])
|
if mods['space-age'] and data.raw['lightning-attractor']['lightning-rod'] then
|
||||||
entity.name = 'rail-support-pole-lightning'
|
local entity = table.deepcopy(data.raw['lightning-attractor']['lightning-rod'])
|
||||||
entity.hidden = true
|
entity.name = 'rail-support-pole-lightning'
|
||||||
entity.hidden_in_factoriopedia = true
|
entity.enabled = false
|
||||||
entity.minable.result = nil
|
entity.hidden = true
|
||||||
entity.range_elongation = math.floor(data.raw['rail-support']['rail-support'].support_range * 2)
|
entity.hidden_in_factoriopedia = true
|
||||||
entity.water_reflection = nil
|
entity.minable.result = nil
|
||||||
entity.chargable_graphics = nil
|
entity.range_elongation = math.floor(data.raw['rail-support']['rail-support'].support_range * 2)
|
||||||
entity.collision_box = {{0, 0}, {0, 0}}
|
entity.water_reflection = nil
|
||||||
entity.selection_box = nil
|
entity.chargable_graphics = nil
|
||||||
entity.collision_mask = {colliding_with_tiles_only = true, layers = {}, not_colliding_with_itself = true}
|
entity.collision_box = {{0, 0}, {0, 0}}
|
||||||
entity.flags = {'hide-alt-info', 'not-blueprintable', 'not-deconstructable', 'not-flammable', 'not-on-map', 'not-selectable-in-game', 'placeable-off-grid', 'placeable-player'}
|
entity.selection_box = nil
|
||||||
entity.next_upgrade = nil
|
entity.collision_mask = {colliding_with_tiles_only = true, layers = {}, not_colliding_with_itself = true}
|
||||||
entity.selection_priority = 49
|
entity.flags = {'hide-alt-info', 'not-blueprintable', 'not-deconstructable', 'not-flammable', 'not-on-map', 'not-selectable-in-game', 'placeable-off-grid', 'placeable-player'}
|
||||||
entity.order = 'zz'
|
entity.next_upgrade = nil
|
||||||
data:extend({entity})
|
entity.selection_priority = 49
|
||||||
end
|
entity.order = 'zz'
|
||||||
|
data:extend({entity})
|
||||||
end
|
end
|
||||||
|
|
||||||
if data.raw['container']['steel-chest'] then
|
if data.raw['container']['steel-chest'] then
|
||||||
|
|||||||
Reference in New Issue
Block a user