This commit is contained in:
2024-10-25 23:42:29 +09:00
parent 73344c39a3
commit 7bde4a7535

View File

@@ -545,7 +545,6 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-OIL'].value the
entity.energy_source = {type = 'void'} entity.energy_source = {type = 'void'}
entity.name = 'super-pump' entity.name = 'super-pump'
entity.minable.result = 'super-pump' entity.minable.result = 'super-pump'
entity.pumping_speed = nil
entity.adjacent_tile_collision_mask = nil entity.adjacent_tile_collision_mask = nil
entity.adjacent_tile_collision_test = {'ground-tile'} entity.adjacent_tile_collision_test = {'ground-tile'}
entity.tile_buildability_rules = nil entity.tile_buildability_rules = nil
@@ -574,22 +573,31 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-OIL'].value the
}}) }})
for _, v in pairs(data.raw.fluid) do for _, v in pairs(data.raw.fluid) do
data:extend({{ if v.subgroup == 'fluid' then
type = 'recipe', local temp
name = v.name,
category = 'fluid', if v.max_temperature then
energy_required = 1, temp = v.max_temperature
enabled = true,
ingredients = {}, else
results = {{type='fluid', name=v.name, amount=10000}}, temp = v.default_temperature
main_product = v.name, end
hide_from_stats = true,
hide_from_player_crafting = true, data:extend({{
allow_decomposition = false, type = 'recipe',
allow_as_intermediate = false, name = v.name,
localised_name = v.localised_name, category = 'fluid',
localised_description = nil energy_required = 1,
}}) enabled = true,
ingredients = nil,
results = {{type='fluid', name=v.name, amount=2000, temperature=temp}},
main_product = v.name,
hide_from_stats = true,
hide_from_player_crafting = true,
localised_name = v.localised_name,
localised_description = nil
}})
end
end end
end end