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

R2API Unlockable

API for adding custom achievements and unlockables

Date uploaded a year ago
Version 1.0.2
Download link
Downloads 1043615
Dependency string RiskofThunder-R2API_Unlockable-1.0.2

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2109 icon

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

Preferred version: 5.4.2109
RiskofThunder-HookGenPatcher-1.2.3 icon

MMHOOK generation at runtime.

Preferred version: 1.2.3
RiskofThunder-R2API_Core-5.0.8 icon

Core R2API module

Preferred version: 5.0.8
RiskofThunder-R2API_ContentManagement-1.0.1 icon

API for adding content to the game

Preferred version: 1.0.1


R2API.Unlockable - Creation of Unlockables, Achievement and Tying them together.


R2API.Unlockable is a submodule assembly for R2API that allows mod creators to add new Unlockables and Achievements to the game. These can later be used to gate certain content pieces from your mods so that an achievement needs to be unlocked before you can get to use a specific content (such as an item)

Use Cases / Features

R2API.Unlockable is mainly used for adding Unlockables that get unlocked after obtaining an AchievementDef, please note that unlocks such as stage / monsters log books should not be added with R2API.Unlockable but rather with R2API.ContentAddition

A valid unlockable and achievement pair is defined by a class that inherits from both BaseAchievement and IModdedUnlockableDataProvider, which gives enough data to create both the UnlockableDef and AchievementDef.

Related Pages



  • Add missing BepInDependency to R2API.ContentManagement


  • Fix the NuGet package which had a dependency on a non-existent version of R2API.Core.


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