Make FluidPrototype implement fuel_category
Posted: Thu Sep 18, 2025 1:27 am
A few recent changes made it so the fuel_value field on fluids is more supported, such as allowing fusion-generator to use it. However, this causes problems with any machine that allows any fluid, such as the K2 gas power generators.
Adding a fuel category to fluids, defaulting to "default" to not be a breaking change, would let mods using the fuel_value field keep to themselves unless specifically made compatible. FluidEnergySource, FusionGenerator, and Generator would also need a fuel_categories field (also optional, defaulting to {"default"}). Any fluid not in that category would act as if it had no fuel value, and destroy_non_fuel_fluid would operate as expected.
Adding a fuel category to fluids, defaulting to "default" to not be a breaking change, would let mods using the fuel_value field keep to themselves unless specifically made compatible. FluidEnergySource, FusionGenerator, and Generator would also need a fuel_categories field (also optional, defaulting to {"default"}). Any fluid not in that category would act as if it had no fuel value, and destroy_non_fuel_fluid would operate as expected.