mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-30 20:01:40 +09:00
Update main.lua
This commit is contained in:
@@ -173,29 +173,29 @@ data.raw['roboport']['roboport'].charging_offsets = {
|
|||||||
{-2.5, 2.5}
|
{-2.5, 2.5}
|
||||||
}
|
}
|
||||||
|
|
||||||
local boiler_item = table.deepcopy(data.raw['item']['boiler'])
|
local item = table.deepcopy(data.raw['item']['boiler'])
|
||||||
boiler_item.name = 'electric-boiler'
|
item.name = 'electric-boiler'
|
||||||
boiler_item.place_result = 'electric-boiler'
|
item.place_result = 'electric-boiler'
|
||||||
boiler_item.order = 'b[steam-power]-b[electric-boiler]'
|
item.order = 'b[steam-power]-b[electric-boiler]'
|
||||||
data:extend({boiler_item})
|
data:extend({item})
|
||||||
|
|
||||||
local boiler_entity = table.deepcopy(data.raw['boiler']['boiler'])
|
local entity = table.deepcopy(data.raw['boiler']['boiler'])
|
||||||
boiler_entity.name = 'electric-boiler'
|
entity.name = 'electric-boiler'
|
||||||
boiler_entity.energy_consumption = '7200kW'
|
entity.energy_consumption = '7200kW'
|
||||||
boiler_entity.target_temperature = 165
|
entity.target_temperature = 165
|
||||||
boiler_entity.minable = {hardness = 0.2, mining_time = 0.5, result = 'electric-boiler'}
|
entity.minable = {hardness = 0.2, mining_time = 0.5, result = 'electric-boiler'}
|
||||||
boiler_entity.emissions_per_minute = 0
|
entity.emissions_per_minute = 0
|
||||||
boiler_entity.energy_source.type = 'electric'
|
entity.energy_source.type = 'electric'
|
||||||
boiler_entity.energy_source.fuel_inventory_size = 0
|
entity.energy_source.fuel_inventory_size = 0
|
||||||
boiler_entity.energy_source.input_priority = 'secondary'
|
entity.energy_source.input_priority = 'secondary'
|
||||||
boiler_entity.energy_source.usage_priority = 'secondary-input'
|
entity.energy_source.usage_priority = 'secondary-input'
|
||||||
boiler_entity.energy_source.light_flicker.color = {r=0.5, g=1, b=1, a=0.5}
|
entity.energy_source.light_flicker.color = {r=0.5, g=1, b=1, a=0.5}
|
||||||
boiler_entity.energy_source.light_flicker.minimum_light_size = 0.1
|
entity.energy_source.light_flicker.minimum_light_size = 0.1
|
||||||
boiler_entity.energy_source.light_flicker.light_intensity_to_size_coefficient = 1
|
entity.energy_source.light_flicker.light_intensity_to_size_coefficient = 1
|
||||||
boiler_entity.fire_flicker_enabled = false
|
entity.fire_flicker_enabled = false
|
||||||
boiler_entity.fire_glow_flicker_enabled = false
|
entity.fire_glow_flicker_enabled = false
|
||||||
boiler_entity.fire = {}
|
entity.fire = {}
|
||||||
data:extend({boiler_entity})
|
data:extend({entity})
|
||||||
|
|
||||||
data:extend({{
|
data:extend({{
|
||||||
type = 'recipe',
|
type = 'recipe',
|
||||||
@@ -207,23 +207,23 @@ data:extend({{
|
|||||||
}})
|
}})
|
||||||
|
|
||||||
for i=1, #ups_chests, 1 do
|
for i=1, #ups_chests, 1 do
|
||||||
local chest_item = table.deepcopy(data.raw['item'][ups_chests[i]])
|
local item = table.deepcopy(data.raw['item'][ups_chests[i]])
|
||||||
local chest_entity
|
local entity
|
||||||
|
|
||||||
if ups_chests[i] == 'steel-chest' then
|
if ups_chests[i] == 'steel-chest' then
|
||||||
chest_entity = table.deepcopy(data.raw['container'][ups_chests[i]])
|
entity = table.deepcopy(data.raw['container'][ups_chests[i]])
|
||||||
else
|
else
|
||||||
chest_entity = table.deepcopy(data.raw['logistic-container'][ups_chests[i]])
|
entity = table.deepcopy(data.raw['logistic-container'][ups_chests[i]])
|
||||||
end
|
end
|
||||||
|
|
||||||
chest_item.name = 'ups-' .. ups_chests[i]
|
item.name = 'ups-' .. ups_chests[i]
|
||||||
chest_item.place_result = 'ups-' .. ups_chests[i]
|
item.place_result = 'ups-' .. ups_chests[i]
|
||||||
chest_item.order = chest_item.order .. '-ups'
|
item.order = chest_item.order .. '-ups'
|
||||||
data:extend({chest_item})
|
data:extend({item})
|
||||||
|
|
||||||
chest_entity.inventory_size = 1
|
entity.inventory_size = 1
|
||||||
chest_entity.name = 'ups-' .. ups_chests[i]
|
entity.name = 'ups-' .. ups_chests[i]
|
||||||
data:extend({chest_entity})
|
data:extend({entity})
|
||||||
|
|
||||||
data:extend({{
|
data:extend({{
|
||||||
type = 'recipe',
|
type = 'recipe',
|
||||||
@@ -234,3 +234,6 @@ for i=1, #ups_chests, 1 do
|
|||||||
result = 'ups-' .. ups_chests[i],
|
result = 'ups-' .. ups_chests[i],
|
||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
data.raw['pipe']['pipe']
|
||||||
|
data.raw['pipe-to-ground']['pipe-to-ground']
|
||||||
Reference in New Issue
Block a user