-
Notifications
You must be signed in to change notification settings - Fork 37
BioReactor Fuel Values
MrPurple6411 edited this page Jul 27, 2020
·
2 revisions
There is a dictionary in BaseBioReactor
called charge
, where the Key is a TechType and the value is a float.
To edit an item's fuel value, you need to call the BioReactorHandler.SetBioReactorCharge()
method sitting in the SMLHelper.V2.Handlers
namespace
There is only one overload for this method:
BioReactorHandler.SetBioReactorCharge([TechType] techType, [float] charge);
-
[TechType] techType
is 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] charge
is the charge to set for the item.
Example: 50f
This will make it so Titanium will have a charge of 50.
BioReactorHandler.SetBioReactorCharge(TechType.Titanium, 50f);
If there is something missing or ambiguous, please create an issue or contact us on the Subnautica Modding Discord using our tags:
- PrimeSonic:
@PrimeSonic#0667
- Metious:
@Metious#3682
Please note that some pages are under construction and the links to them will be enabled as they are completed
[Adding]
- Items/GameObjects using Asset Classes
- Asynchronous loading for ModPrefab
- [Custom Scanner Unlocks]
- Items/GameObjects to the Spawning System
- [Recipes to uncraftable items]
- [Custom Mouse Click Actions]
[Editing]
- Background Type
- Crafting Time
- Equipment Type
- Quick Slot Type
- Size in Inventory
- [Recipes for craftable items]
- Harvest Settings
- BioReactor Fuel Values
- [Scanning Count/Time]
- [Spawning (Where/How often/How many)]
[General Utilities]
- In-Game Options Menu
- Adding crafting recipes for other mods items
- Using items from other mods
- Texture/Sprite Utilities
- [Adding/Playing Audio]
- Config Files using Abstract Json Config class
- Custom Console Commands
- [Registering OnSave/OnQuit Actions]
[Language]