R2API Difficulty
API for adding custom in-game difficulties
Date uploaded | 2 years ago |
Version | 1.0.1 |
Download link | RiskofThunder-R2API_Difficulty-1.0.1.zip |
Downloads | 21583 |
Dependency string | RiskofThunder-R2API_Difficulty-1.0.1 |
This mod requires the following mods to function
bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2109README
R2API.Difficulty - New Run Difficulties
About
R2API.Difficulty is a submodule assembly for R2API that allows mod creators to add their own Difficulties to the game.
Use Cases / Features
R2API.Difficulty is used for adding new difficulties to the game, These difficulties can include new behaviours depending on how the mod creator decides to implement the difficulty itself.
Difficulties added by DifficultyAPI by default will use negative DifficultyIndices, this is done because after RoR2 1.0.0.0, any DifficultyDef with an index greater than Eclipse 8 will recieve all the Eclipse modifiers. If you want this, you can always set "preferPositive" to true.
DifficultyAPI also comes bundled with the SerializableDifficultyDef, a ScriptableObject that holds the definition of a DifficultyDef, after being added by DifficultyAPI, the DifficultyDef and DifficultyIndex properties are assignedd values.
Related Pages
Changelog
'1.0.1'
- Fix hooks not being properly enabled.
'1.0.0'
- Split from the main R2API.dll into its own submodule.