You are viewing a potentially older version of this package. View all versions.
RiskofThunder-R2API_Difficulty-1.1.1 icon

R2API Difficulty

API for adding custom in-game difficulties

Date uploaded 2 years ago
Version 1.1.1
Download link RiskofThunder-R2API_Difficulty-1.1.1.zip
Downloads 135397
Dependency string RiskofThunder-R2API_Difficulty-1.1.1

This mod requires the following mods to function

RiskofThunder-HookGenPatcher-1.2.3 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.3
bbepis-BepInExPack-5.4.2109 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2109
RiskofThunder-R2API_Core-5.0.10 icon
RiskofThunder-R2API_Core

Core R2API module

Preferred version: 5.0.10

README

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.1.1'

  • First added custom difficulty would be incorrectly skipped from the rule catalog system init.

'1.1.0'

  • Added the ability to hide new difficulties from the lobby screen

'1.0.2'

  • Fix multiplayer lobby being empty (including if you selected to show incompatible games).

'1.0.1'

  • Fix hooks not being properly enabled.

'1.0.0'

  • Split from the main R2API.dll into its own submodule.