Make FusionGeneratorPrototype implement burns_fluid
Posted: Tue Sep 09, 2025 12:58 pm
I'm making a mod for redox flow batteries - where an electrolyte fluid is energized to store power - and I keep running into the issue that heat capacity is the only way to reliably hold the energy content of a fluid.
The only prototype in the game that consumes fluid, generates power, and outputs a different fluid is the fusion generator, which only uses heat capacity to determine power output.
GeneratorPrototype can use fuel_value, but it can't output a different fluid. Most entities can use FluidEnergySource, but none of them can produce energy in a different form - aside from ReactorPrototype, which is hardcoded to output heat.
Right now I'm having to directly modify the heat capacity of electrolyte, which risks incompatability with other mods.
I'd like for fusion generators have the option to use a fluid's fuel value instead of heat.
On a similar note, I'd like if BoilerPrototype could have its output value overridden. It's the cleanest way to turn one fluid into another and consume energy in the process, but the output speed and output ratio both depend on the relative heat capacities of the input and output fluids. Being able to manually say "1MJ turns 10 units of fluid X into 10 units of fluid Y each second" would be useful. I know I could just use a crafting machine with a fixed recipe, but that runs into issues with quality, because then I have to manually define energy consumtion increases to match fluid output.
The only prototype in the game that consumes fluid, generates power, and outputs a different fluid is the fusion generator, which only uses heat capacity to determine power output.
GeneratorPrototype can use fuel_value, but it can't output a different fluid. Most entities can use FluidEnergySource, but none of them can produce energy in a different form - aside from ReactorPrototype, which is hardcoded to output heat.
Right now I'm having to directly modify the heat capacity of electrolyte, which risks incompatability with other mods.
I'd like for fusion generators have the option to use a fluid's fuel value instead of heat.
On a similar note, I'd like if BoilerPrototype could have its output value overridden. It's the cleanest way to turn one fluid into another and consume energy in the process, but the output speed and output ratio both depend on the relative heat capacities of the input and output fluids. Being able to manually say "1MJ turns 10 units of fluid X into 10 units of fluid Y each second" would be useful. I know I could just use a crafting machine with a fixed recipe, but that runs into issues with quality, because then I have to manually define energy consumtion increases to match fluid output.