This commit is contained in:
2026-06-29 18:50:47 +09:00
parent 8cd63909c0
commit 85955f8399
4 changed files with 90 additions and 1 deletions
+52
View File
@@ -133,6 +133,58 @@ if data.raw['electric-energy-interface'] and data.raw['electric-energy-interface
end
end
-- CT A 1 BASE ENTITY,ITEM
-- CT C 1 BASE ENTITY
if data.raw['loader-1x1'] and data.raw['loader-1x1']['loader-1x1'] then
local max_belt_speed = 0
for _, b in pairs(data.raw['transport-belt']) do
if b.speed then
max_belt_speed = math.max(max_belt_speed, b.speed)
end
end
data.raw['loader-1x1']['loader-1x1'].hidden = false
data.raw['loader-1x1']['loader-1x1'].hidden_in_factoriopedia = false
data.raw['loader-1x1']['loader-1x1'].filter_count = 2
data.raw['loader-1x1']['loader-1x1'].per_lane_filters = true
data.raw['loader-1x1']['loader-1x1'].adjustable_belt_stack_size = (data.raw['inserter']['stack-inserter'] and true) or false
data.raw['loader-1x1']['loader-1x1'].max_belt_stack_size = (data.raw['inserter']['stack-inserter'] and data.raw['inserter']['stack-inserter'].max_belt_stack_size) or 1
if data.raw.item['loader'] then
local item = table.deepcopy(data.raw.item['loader'])
item.name = 'loader-1x1'
item.place_result = item.name
item.hidden = false
item.hidden_in_factoriopedia = false
end
if data.raw['infinity-container'] and data.raw['infinity-container']['infinity-chest'] then
local entity = table.deepcopy(data.raw['infinity-container']['infinity-chest'])
entity.name = 'loader-1x1-infinity-chest'
entity.enabled = false
entity.hidden = true
entity.hidden_in_factoriopedia = true
entity.gui_mode = 'none'
entity.inventory_type = 'with_custom_stack_size'
if not entity.inventory_properties then
entity.inventory_properties = {}
end
entity.inventory_properties.stack_size_min = 100
entity.minable.result = 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', 'not-blueprintable', 'not-deconstructable', 'not-flammable', 'not-on-map', 'not-selectable-in-game', 'placeable-off-grid', 'placeable-player'}
entity.next_upgrade = nil
entity.selection_priority = 49
entity.order = 'zz'
data:extend({entity})
end
end
-- CT A 1 BASE MAP_GEN_PRESET
if settings.startup['PHI-CT-TILE'].value then
data.raw['map-gen-presets']['default']['empty-world'] = {