mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
.
This commit is contained in:
+20
-28
@@ -2,8 +2,13 @@ local items = require 'config'
|
|||||||
|
|
||||||
data.raw.recipe['landfill'].ingredients[1].amount = math.min(20, data.raw.recipe['landfill'].ingredients[1].amount)
|
data.raw.recipe['landfill'].ingredients[1].amount = math.min(20, data.raw.recipe['landfill'].ingredients[1].amount)
|
||||||
data.raw['inserter']['burner-inserter'].allow_burner_leech = true
|
data.raw['inserter']['burner-inserter'].allow_burner_leech = true
|
||||||
data.raw['character']['character']['mining_categories'] = {'basic-solid', 'hard-solid'}
|
|
||||||
data.raw['programmable-speaker']['programmable-speaker'].energy_source.usage_priority = 'primary-input'
|
data.raw['programmable-speaker']['programmable-speaker'].energy_source.usage_priority = 'primary-input'
|
||||||
|
data.raw['active-defense-equipment']['discharge-defense-equipment'].automatic = true
|
||||||
|
table.insert(data.raw['fluid-turret']['flamethrower-turret'].attack_parameters.fluids, {type = 'sulfuric-acid', damage_modifier = 1.2})
|
||||||
|
data.raw.recipe['selector-combinator'].ingredients = {{type = 'item', name = 'advanced-circuit', amount = 5}, {type = 'item', name = 'decider-combinator', amount = 2}}
|
||||||
|
data.raw['module']['efficiency-module'].effect.consumption = math.min(-0.3, data.raw['module']['efficiency-module'].effect.consumption)
|
||||||
|
data.raw['module']['efficiency-module-2'].effect.consumption = math.min(-0.6, data.raw['module']['efficiency-module'].effect.consumption)
|
||||||
|
data.raw['module']['efficiency-module-3'].effect.consumption = math.min(-0.9, data.raw['module']['efficiency-module'].effect.consumption)
|
||||||
|
|
||||||
for _, v in pairs(data.raw['container']) do
|
for _, v in pairs(data.raw['container']) do
|
||||||
v.inventory_type = 'with_filters_and_bar'
|
v.inventory_type = 'with_filters_and_bar'
|
||||||
@@ -13,58 +18,43 @@ for _, v in pairs(data.raw['logistic-container']) do
|
|||||||
v.inventory_type = 'with_filters_and_bar'
|
v.inventory_type = 'with_filters_and_bar'
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(data.raw['active-defense-equipment']) do
|
|
||||||
v.automatic = true
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, v in pairs(data.raw['reactor']) do
|
for _, v in pairs(data.raw['reactor']) do
|
||||||
v.scale_energy_usage = (v.fast_replaceable_group and v.fast_replaceable_group == 'reactor')
|
v.scale_energy_usage = (v.fast_replaceable_group and v.fast_replaceable_group == 'reactor')
|
||||||
end
|
end
|
||||||
|
|
||||||
table.insert(data.raw['fluid-turret']['flamethrower-turret'].attack_parameters.fluids, {type = 'sulfuric-acid', damage_modifier = 1.2})
|
|
||||||
|
|
||||||
for _, v in pairs(data.raw['pump']) do
|
for _, v in pairs(data.raw['pump']) do
|
||||||
v.pumping_speed = math.max(50, v.pumping_speed) * settings.startup['PHI-MI-PIPE'].value / 10
|
v.pumping_speed = math.max(50, v.pumping_speed) * settings.startup['PHI-MI-PIPE'].value / 10
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(data.raw['valve']) do
|
|
||||||
v.flow_rate = math.max(50, v.flow_rate) * settings.startup['PHI-MI-PIPE'].value / 10
|
|
||||||
end
|
|
||||||
|
|
||||||
data.raw.recipe['selector-combinator'].ingredients = {{type = 'item', name = 'advanced-circuit', amount = 5}, {type = 'item', name = 'decider-combinator', amount = 2}}
|
|
||||||
|
|
||||||
for _, v in pairs(data.raw['mining-drill']) do
|
for _, v in pairs(data.raw['mining-drill']) do
|
||||||
v.filter_count = 5
|
v.filter_count = 5
|
||||||
end
|
end
|
||||||
|
|
||||||
data.raw['module']['efficiency-module'].effect.consumption = math.min(-0.3, data.raw['module']['efficiency-module'].effect.consumption)
|
data:extend({{type='recipe-category', name='fluid'}})
|
||||||
data.raw['module']['efficiency-module-2'].effect.consumption = math.min(-0.6, data.raw['module']['efficiency-module'].effect.consumption)
|
|
||||||
data.raw['module']['efficiency-module-3'].effect.consumption = math.min(-0.9, data.raw['module']['efficiency-module'].effect.consumption)
|
|
||||||
|
|
||||||
for _, v in pairs({'one-way-valve', 'overflow-valve', 'top-up-valve'}) do
|
for _, v in pairs(data.raw['valve']) do
|
||||||
data.raw['valve'][v].hidden = false
|
v.flow_rate = math.max(50, v.flow_rate) * settings.startup['PHI-MI-PIPE'].value / 10
|
||||||
data.raw.item[v].hidden = false
|
v.hidden = false
|
||||||
data.raw.item[v].subgroup = 'energy-pipe-distribution'
|
data.raw.item[v.name].hidden = false
|
||||||
|
data.raw.item[v.name].subgroup = 'energy-pipe-distribution'
|
||||||
|
|
||||||
data:extend({{
|
data:extend({{
|
||||||
type = 'recipe',
|
type = 'recipe',
|
||||||
name = v,
|
name = v.name,
|
||||||
energy_required = 1,
|
energy_required = 1,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
icon = data.raw.item[v].icon,
|
icon = data.raw.item[v.name].icon,
|
||||||
icon_size = 64,
|
icon_size = 64,
|
||||||
order = 'zc',
|
order = 'zc',
|
||||||
allow_productivity = false,
|
allow_productivity = false,
|
||||||
ingredients = {{type = 'item', name = 'pipe', amount = 2}, {type = 'item', name = 'electronic-circuit', amount = 3}},
|
ingredients = {{type = 'item', name = 'pipe', amount = 2}, {type = 'item', name = 'electronic-circuit', amount = 3}},
|
||||||
results = {{type = 'item', name = v, amount = 1}},
|
results = {{type = 'item', name = v.name, amount = 1}},
|
||||||
main_product = v,
|
main_product = v.name,
|
||||||
localised_name = {'entity-name.' .. v},
|
localised_name = {'entity-name.' .. v.name},
|
||||||
localised_description = {'entity-description.' .. v}
|
localised_description = {'entity-description.' .. v.name}
|
||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
data:extend({{type='recipe-category', name='fluid'}})
|
|
||||||
|
|
||||||
if data.raw['offshore-pump']['offshore-pump'] then
|
if data.raw['offshore-pump']['offshore-pump'] then
|
||||||
local item = table.deepcopy(data.raw['item']['offshore-pump'])
|
local item = table.deepcopy(data.raw['item']['offshore-pump'])
|
||||||
item.name = 'super-pump'
|
item.name = 'super-pump'
|
||||||
@@ -481,6 +471,8 @@ data.raw['proxy-container']['proxy-container'].flags = {'not-blueprintable', 'hi
|
|||||||
data.raw['proxy-container']['proxy-container'].draw_inventory_content = false
|
data.raw['proxy-container']['proxy-container'].draw_inventory_content = false
|
||||||
|
|
||||||
if mods['space-age'] then
|
if mods['space-age'] then
|
||||||
|
data.raw['character']['character']['mining_categories'] = {'basic-solid', 'hard-solid'}
|
||||||
|
|
||||||
for _, v in pairs(data.raw['mining-drill']) do
|
for _, v in pairs(data.raw['mining-drill']) do
|
||||||
v.drops_full_belt_stacks = true
|
v.drops_full_belt_stacks = true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user