Code: Select all
{
type = "fluid",
name = "water-test",
default_temperature = 15,
max_temperature = 100,
heat_capacity = "0.2KJ",
base_color = {r=0, g=0.34, b=0.6},
flow_color = {r=0.7, g=0.7, b=0.7},
icons = {{icon = "__base__/graphics/icons/fluid/water.png"}},
order = "a[fluid]-a[water]",
pressure_to_speed_ratio = 0.4,
flow_to_energy_ratio = 0.59
},
Code: Select all
if (fluid.auto_barrel == nil or fluid.auto_barrel) and fluid.icon then

Related: viewtopic.php?f=34&t=47676