mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -243,14 +243,14 @@ if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (sett
|
|||||||
script.on_event(defines.events.script_raised_destroy, destroy_electric_pole, filter)
|
script.on_event(defines.events.script_raised_destroy, destroy_electric_pole, filter)
|
||||||
|
|
||||||
local function build_proxy_container(e)
|
local function build_proxy_container(e)
|
||||||
local p = e.entity.surface.create_entity{name = 'phi-cl-proxy-container', position = {e.entity.position.x, e.entity.position.y}, force = 'neutral', quality = e.entity.quality.name}
|
local p = e.entity.surface.create_entity{name = 'proxy-container', position = {e.entity.position.x, e.entity.position.y}, force = 'neutral', quality = e.entity.quality.name}
|
||||||
p.destructible = false
|
p.destructible = false
|
||||||
p.proxy_target_entity = e.entity
|
p.proxy_target_entity = e.entity
|
||||||
p.proxy_target_inventory = defines.inventory.lab_input
|
p.proxy_target_inventory = defines.inventory.lab_input
|
||||||
end
|
end
|
||||||
|
|
||||||
local function destroy_proxy_container(e)
|
local function destroy_proxy_container(e)
|
||||||
local p = e.entity.surface.find_entity({name = 'phi-cl-proxy-container', force = 'neutral', quality = e.entity.quality.name}, {e.entity.position.x, e.entity.position.y})
|
local p = e.entity.surface.find_entity({name = 'proxy-container', force = 'neutral', quality = e.entity.quality.name}, {e.entity.position.x, e.entity.position.y})
|
||||||
|
|
||||||
if p then
|
if p then
|
||||||
p.destroy()
|
p.destroy()
|
||||||
|
|||||||
@@ -1664,22 +1664,9 @@ if settings.startup['PHI-CT'].value then
|
|||||||
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-underground-belt-a'})
|
table.insert(data.raw.technology['turbo-transport-belt'].effects, {type = 'unlock-recipe', recipe = 'turbo-underground-belt-a'})
|
||||||
end
|
end
|
||||||
|
|
||||||
entity = table.deepcopy(data.raw['proxy-container']['proxy-container'])
|
|
||||||
entity.name = 'phi-cl-proxy-container'
|
|
||||||
entity.hidden = true
|
|
||||||
entity.hidden_in_factoriopedia = true
|
|
||||||
entity.minable.result = nil
|
|
||||||
entity.water_reflection = nil
|
|
||||||
entity.collision_box = {{-0.2, -0.2}, {0.2, 0.2}}
|
|
||||||
entity.selection_box = {{-0.5, -0.5}, {0.5, 0.5}}
|
|
||||||
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.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.flags = {'not-blueprintable', 'not-deconstructable', 'not-flammable', 'not-on-map', 'placeable-off-grid', 'placeable-player', 'no-automated-item-insertion', 'no-automated-item-removal'}
|
data.raw['proxy-container']['proxy-container'].flags = {'not-blueprintable', 'not-deconstructable', 'not-flammable', 'not-on-map', 'placeable-off-grid', 'placeable-player', 'no-automated-item-insertion', 'no-automated-item-removal'}
|
||||||
entity.draw_inventory_content = false
|
data.raw['proxy-container']['proxy-container'].draw_inventory_content = false
|
||||||
entity.next_upgrade = nil
|
|
||||||
entity.selection_priority = 51
|
|
||||||
entity.order = 'zz'
|
|
||||||
data:extend{{entity}}
|
|
||||||
|
|
||||||
for _, v in pairs(data.raw.fluid) do
|
for _, v in pairs(data.raw.fluid) do
|
||||||
if (not data.raw.recipe['pump-' .. v.name]) and v.subgroup == 'fluid' then
|
if (not data.raw.recipe['pump-' .. v.name]) and v.subgroup == 'fluid' then
|
||||||
|
|||||||
Reference in New Issue
Block a user