mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 02:55:22 +09:00
.
This commit is contained in:
@@ -30,6 +30,13 @@ local rail_support_pole = {
|
||||
'rail-support-pole-lightning'
|
||||
}
|
||||
|
||||
--[[
|
||||
TODO
|
||||
Valve
|
||||
GUI set 0 ~ 1
|
||||
entity.valve_threshold_override
|
||||
]]
|
||||
|
||||
local function inserter_gui_create(player)
|
||||
if player.gui.relative.inserter_config then
|
||||
player.gui.relative.inserter_config.destroy()
|
||||
|
||||
@@ -523,6 +523,27 @@ if mods['space-age'] and (settings.startup['PHI-GM'].value and settings.startup[
|
||||
end
|
||||
end
|
||||
|
||||
for _, v in pairs({'one-way-valve', 'overflow-valve', 'top-up-valve'}) do
|
||||
data.raw['valve'][v].hidden = false
|
||||
data.raw.item[v].hidden = false
|
||||
|
||||
data:extend({{
|
||||
type = 'recipe',
|
||||
name = v,
|
||||
energy_required = 1,
|
||||
enabled = true,
|
||||
icon = data.raw.item[v].icon,
|
||||
icon_size = 64,
|
||||
order = 'zc',
|
||||
allow_productivity = false,
|
||||
ingredients = {{type = 'item', name = 'pipe', amount = 1}, {type = 'item', name = 'pump', amount = 1}, {type = 'item', name = 'electronic-circuit', amount = 5}},
|
||||
results = {{type = 'item', name = v, amount = 1}},
|
||||
main_product = v,
|
||||
localised_name = {'entity-name.' .. v},
|
||||
localised_description = {'entity-description.' .. v}
|
||||
}})
|
||||
end
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user