STS2.RitsuLib 0.2.23

There is a newer version of this package available.
See the version list below for details.
dotnet add package STS2.RitsuLib --version 0.2.23
                    
NuGet\Install-Package STS2.RitsuLib -Version 0.2.23
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="STS2.RitsuLib" Version="0.2.23" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="STS2.RitsuLib" Version="0.2.23" />
                    
Directory.Packages.props
<PackageReference Include="STS2.RitsuLib" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add STS2.RitsuLib --version 0.2.23
                    
#r "nuget: STS2.RitsuLib, 0.2.23"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package STS2.RitsuLib@0.2.23
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=STS2.RitsuLib&version=0.2.23
                    
Install as a Cake Addin
#tool nuget:?package=STS2.RitsuLib&version=0.2.23
                    
Install as a Cake Tool

STS2-RitsuLib

Shared framework library for Slay the Spire 2 mods.

Chinese README: README.zh.md

RitsuLib is maintained as a practical authoring library. API growth is demand-driven and focused on the patterns used by the bundled mods.

The library exists alongside BaseLib and currently does not conflict with it.

Documentation index: Docs/README.md

Optional analyzers

Companion Roslyn package for RitsuLib-style mods (localization keys, Mod*Template usage, registration attributes): STS2-ModAnalyzers-RitsuLib (NuGet: STS2.ModAnalyzers.RitsuLib).

Mod Settings

RitsuLib includes a settings UI layer for player-editable values.

  • register pages explicitly with RitsuLibFramework.RegisterModSettings(...)
  • bind controls to ModDataStore instead of introducing a separate configuration backend
  • source labels and descriptions from I18N or game-native LocString
  • keep RitsuLib settings registration independent from BaseLib's config-page registry and file paths

Guide: Docs/en/ModSettings.md

Debug Compatibility Mode

debug_compatibility_mode defaults to off. In that state, patched systems keep vanilla behavior.

When the master toggle is on, the settings page exposes per-feature compatibility fallbacks. Sub-toggles default to on.

Sub-setting Effect when enabled
LocTable missing keys Resolve to placeholder LocString values and log one [Localization][DebugCompat] warning per key
Invalid unlock epochs Skip invalid epoch grants and log one [Unlocks][DebugCompat] warning per stable key
THE_ARCHITECT missing dialogue Inject empty Lines entries for ModContentRegistry characters when vanilla provides no dialogue

Disabling a sub-toggle removes only that fallback.

Windows settings path:

%appdata%\SlayTheSpire2\steam\<user_id>\mod_data\com.ritsukage.sts2-RitsuLib\settings.json

License

MIT

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on STS2.RitsuLib:

Package Downloads
FuYnAloft.Sts2.MinionLib.RitsuAdapters

Adapters for STS2-RitsuLib to better work with MinionLib. 适用于 STS2-RitsuLib 的适配器,使其更好地与 MinionLib 配合使用。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.18 71 8/28/2026
0.5.17 204 8/28/2026
0.5.16 76 8/27/2026
0.5.15 96 8/26/2026
0.5.14 419 8/21/2026
0.5.13 219 8/16/2026
0.5.12 194 8/14/2026
0.5.11 307 8/8/2026
0.5.10 225 8/4/2026
0.5.9 102 8/4/2026
0.5.8 128 8/3/2026
0.5.7 102 8/3/2026
0.5.6 106 8/3/2026
0.5.5 115 8/3/2026
0.5.4 189 8/1/2026
0.5.3 129 8/1/2026
0.5.2 281 7/31/2026
0.5.1 133 7/31/2026
0.5.0 159 7/31/2026
0.2.23 106 5/5/2026
Loading failed