R2API Unlockable
API for adding custom achievements and unlockables
Last updated | a year ago |
Total downloads | 1830694 |
Total rating | 6 |
Categories | Libraries |
Dependency string | RiskofThunder-R2API_Unlockable-1.0.2 |
Dependants | 860 other packages depend on this package |
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.Unlockable - Creation of Unlockables, Achievement and Tying them together.
About
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
Changelog
'1.0.2'
- Add missing
BepInDependency
toR2API.ContentManagement
'1.0.1'
- Fix the NuGet package which had a dependency on a non-existent version of
R2API.Core
.
'1.0.0'
- Split from the main R2API.dll into its own submodule.