From 55e10db863e6c873b3d8516413f1234488a62073 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 29 Jun 2026 18:59:35 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 3 -- PHI-CL/control/loader.lua | 28 ----------------- PHI-CL/data/b/ct.lua | 64 --------------------------------------- 3 files changed, 95 deletions(-) delete mode 100644 PHI-CL/control/loader.lua diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 5ab66fd..178b105 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -1,7 +1,6 @@ local cargo_landing = require('control/cargo-landing') local chest = require('control/chest') local inserter = require('control/inserter') -local loader = require('control/loader') local pump = require('control/pump') local rail_support = require('control/rail-support') local trash = require('control/trash') @@ -9,13 +8,11 @@ local trash = require('control/trash') local function entity_build(event) cargo_landing.build(event) chest.build(event) - loader.build(event) rail_support.build(event) trash.build(event) end local function entity_destroy(event) - loader.destroy(event) rail_support.destroy(event) end diff --git a/PHI-CL/control/loader.lua b/PHI-CL/control/loader.lua deleted file mode 100644 index ea26481..0000000 --- a/PHI-CL/control/loader.lua +++ /dev/null @@ -1,28 +0,0 @@ -local main = {} - -function main.build(event) - if event.entity.type ~= 'loader-1x1' then - return - end - - if prototypes.entity['loader-1x1'] then - local p = event.entity.surface.create_entity{name = 'loader-1x1', position = {event.entity.position.x, event.entity.position.y}, force = 'neutral', quality = event.entity.quality.name} - p.destructible = false - end -end - -function main.destroy(event) - if event.entity.type ~= 'loader-1x1' then - return - end - - if prototypes.entity['loader-1x1'] then - local p = event.entity.surface.find_entity({name = 'loader-1x1', force = 'neutral', quality = event.entity.quality.name}, {event.entity.position.x, event.entity.position.y}) - - if p then - p.destroy() - end - end -end - -return main diff --git a/PHI-CL/data/b/ct.lua b/PHI-CL/data/b/ct.lua index 5caa014..40de711 100644 --- a/PHI-CL/data/b/ct.lua +++ b/PHI-CL/data/b/ct.lua @@ -133,70 +133,6 @@ 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.recipe['loader'] then - local recipe = table.deepcopy(data.raw.recipe['loader']) - recipe.name = 'loader-1x1' - recipe.enabled = false - recipe.results = {{type = 'item', name = recipe.name, amount = 1}} - recipe.main_product = recipe.name - recipe.hidden = false - recipe.hidden_in_factoriopedia = false - recipe.localised_name = {'?', data.raw['loader-1x1']['loader-1x1'].localised_name, ''} - recipe.localised_description = {'?', data.raw['loader-1x1']['loader-1x1'].localised_description, ''} - 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'] = {