Hello
there is LuaEntityPrototype::get_max_energy_usage(quality?) and for fusion-reactor that return 10MW but there is nothing to know 100MW in Cunsumes Fusion Fuel section
Add ability to know max consumption for fusion-reactor (fusion fuel section)
Re: Add ability to know max consumption for fusion-reactor (fusion fuel section)
I think that the 100MW figure is calculated by multiplying the fusion reactor's fluid property:
Good Luck!
by the fluid definition for Plasma:max_fluid_usage = 4/second, -- at normal quality
1,000,000 Degrees * 25 Joules * 4 Fluid/second = 100MW output power. Quality Fusion Reactors output more Fluid; Neighboring Fusion reactors increase the Temperature of the Fluid.default_temperature = 1000000,
heat_capacity = "25J",
Good Luck!
Re: Add ability to know max consumption for fusion-reactor (fusion fuel section)
Probably because it consumes electric energy. The API was never made with such entities in mind.Helfima wrote: Sun May 18, 2025 4:23 pm there is LuaEntityPrototype::get_max_energy_usage(quality?) and for fusion-reactor that return 10MW but there is nothing to know 100MW in Cunsumes Fusion Fuel section
Re: Add ability to know max consumption for fusion-reactor (fusion fuel section)
fixed in v2.0.56
because now LuaEntityPrototype::get_fluid_usage_per_tick return value for FusionReactor
this can be move in "Already exists" section
because now LuaEntityPrototype::get_fluid_usage_per_tick return value for FusionReactor
Code: Select all
get_fluid_usage_per_tick(quality?) → double?
The fluid usage of this generator or fusion reactor prototype.
Parameters
quality :: QualityID?
Can only be used if this is Generator or FusionReactor
Re: Add ability to know max consumption for fusion-reactor (fusion fuel section)
You mean "Implemented mod requests", since this request predates 2.0.56.