BioReactor Fuel Values - SubnauticaModding/Nautilus GitHub Wiki
How does the game BioReactor Fuel Values?
There is a dictionary in BaseBioReactor called charge, where the Key is a TechType and the value is a float.
How can I change an item's fuel value?
To edit an item's fuel value, you need to call the BioReactorHandler.SetBioReactorCharge() method sitting in the SMLHelper.V2.Handlers namespace
Overloads
There is only one overload for this method:
BioReactorHandler.SetBioReactorCharge([TechType] techType, [float] charge);
Parameters
[TechType] techTypeis the item that you want to modify the harvest type for. This can be both an existing or a custom item.
Example: TechType.Titanium
[float] chargeis the charge to set for the item.
Example: 50f
Usage
This will make it so Titanium will have a charge of 50.
BioReactorHandler.SetBioReactorCharge(TechType.Titanium, 50f);