mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 12:11:40 +09:00
.
This commit is contained in:
@@ -174,33 +174,17 @@ if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (sett
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local entity = table.deepcopy(data.raw['electric-pole']['big-electric-pole'])
|
if mods['elevated-rails'] then
|
||||||
entity.name = 'rail-support-pole-electric'
|
local entity = table.deepcopy(data.raw['electric-pole']['big-electric-pole'])
|
||||||
entity.hidden = true
|
entity.name = 'rail-support-pole-electric'
|
||||||
entity.hidden_in_factoriopedia = true
|
|
||||||
entity.minable.result = nil
|
|
||||||
entity.maximum_wire_distance = math.floor(data.raw['rail-support']['rail-support'].support_range * 1.75)
|
|
||||||
entity.supply_area_distance = 0
|
|
||||||
entity.water_reflection = nil
|
|
||||||
entity.pictures = nil
|
|
||||||
entity.active_picture = nil
|
|
||||||
entity.collision_box = {{0, 0}, {0, 0}}
|
|
||||||
entity.selection_box = nil
|
|
||||||
entity.collision_mask = {colliding_with_tiles_only = true, layers = {}, not_colliding_with_itself = true}
|
|
||||||
entity.flags = {'hide-alt-info', 'no-copy-paste', 'not-blueprintable', 'not-deconstructable', 'not-flammable', 'not-on-map', 'not-selectable-in-game', 'placeable-off-grid', 'placeable-player'}
|
|
||||||
entity.next_upgrade = nil
|
|
||||||
entity.order = 'zz'
|
|
||||||
data:extend({entity})
|
|
||||||
|
|
||||||
if (not (settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value)) and mods['space-age'] and data.raw['lightning-attractor']['lightning-rod'] then
|
|
||||||
entity = table.deepcopy(data.raw['lightning-attractor']['lightning-rod'])
|
|
||||||
entity.name = 'rail-support-pole-lightning'
|
|
||||||
entity.hidden = true
|
entity.hidden = true
|
||||||
entity.hidden_in_factoriopedia = true
|
entity.hidden_in_factoriopedia = true
|
||||||
entity.minable.result = nil
|
entity.minable.result = nil
|
||||||
entity.range_elongation = math.floor(data.raw['rail-support']['rail-support'].support_range * 1.75)
|
entity.maximum_wire_distance = math.floor(data.raw['rail-support']['rail-support'].support_range * 1.75)
|
||||||
|
entity.supply_area_distance = 0
|
||||||
entity.water_reflection = nil
|
entity.water_reflection = nil
|
||||||
entity.chargable_graphics = nil
|
entity.pictures = nil
|
||||||
|
entity.active_picture = nil
|
||||||
entity.collision_box = {{0, 0}, {0, 0}}
|
entity.collision_box = {{0, 0}, {0, 0}}
|
||||||
entity.selection_box = nil
|
entity.selection_box = nil
|
||||||
entity.collision_mask = {colliding_with_tiles_only = true, layers = {}, not_colliding_with_itself = true}
|
entity.collision_mask = {colliding_with_tiles_only = true, layers = {}, not_colliding_with_itself = true}
|
||||||
@@ -208,6 +192,24 @@ if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (sett
|
|||||||
entity.next_upgrade = nil
|
entity.next_upgrade = nil
|
||||||
entity.order = 'zz'
|
entity.order = 'zz'
|
||||||
data:extend({entity})
|
data:extend({entity})
|
||||||
|
|
||||||
|
if (not (settings.startup['PHI-VP'].value and settings.startup['PHI-VP-MAIN'].value)) and mods['space-age'] and data.raw['lightning-attractor']['lightning-rod'] then
|
||||||
|
entity = table.deepcopy(data.raw['lightning-attractor']['lightning-rod'])
|
||||||
|
entity.name = 'rail-support-pole-lightning'
|
||||||
|
entity.hidden = true
|
||||||
|
entity.hidden_in_factoriopedia = true
|
||||||
|
entity.minable.result = nil
|
||||||
|
entity.range_elongation = math.floor(data.raw['rail-support']['rail-support'].support_range * 1.75)
|
||||||
|
entity.water_reflection = nil
|
||||||
|
entity.chargable_graphics = nil
|
||||||
|
entity.collision_box = {{0, 0}, {0, 0}}
|
||||||
|
entity.selection_box = nil
|
||||||
|
entity.collision_mask = {colliding_with_tiles_only = true, layers = {}, not_colliding_with_itself = true}
|
||||||
|
entity.flags = {'hide-alt-info', 'no-copy-paste', 'not-blueprintable', 'not-deconstructable', 'not-flammable', 'not-on-map', 'not-selectable-in-game', 'placeable-off-grid', 'placeable-player'}
|
||||||
|
entity.next_upgrade = nil
|
||||||
|
entity.order = 'zz'
|
||||||
|
data:extend({entity})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user