STS2.RitsuLib
0.2.18
See the version list below for details.
dotnet add package STS2.RitsuLib --version 0.2.18
NuGet\Install-Package STS2.RitsuLib -Version 0.2.18
<PackageReference Include="STS2.RitsuLib" Version="0.2.18" />
<PackageVersion Include="STS2.RitsuLib" Version="0.2.18" />
<PackageReference Include="STS2.RitsuLib" />
paket add STS2.RitsuLib --version 0.2.18
#r "nuget: STS2.RitsuLib, 0.2.18"
#:package STS2.RitsuLib@0.2.18
#addin nuget:?package=STS2.RitsuLib&version=0.2.18
#tool nuget:?package=STS2.RitsuLib&version=0.2.18
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
ModDataStoreinstead of introducing a separate configuration backend - source labels and descriptions from
I18Nor game-nativeLocString - 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 | Versions 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. |
-
net9.0
- Godot.SourceGenerators (>= 4.5.1)
- GodotSharp (>= 4.5.1)
- System.IO.Hashing (>= 9.0.0)
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.4.66 | 66 | 7/28/2026 |
| 0.4.65 | 44 | 7/28/2026 |
| 0.4.64 | 143 | 7/24/2026 |
| 0.4.63 | 77 | 7/24/2026 |
| 0.4.62 | 358 | 7/21/2026 |
| 0.4.61 | 117 | 7/21/2026 |
| 0.4.60 | 182 | 7/18/2026 |
| 0.4.59 | 197 | 7/17/2026 |
| 0.4.58 | 155 | 7/17/2026 |
| 0.4.57 | 205 | 7/12/2026 |
| 0.4.56 | 127 | 7/11/2026 |
| 0.4.55 | 123 | 7/10/2026 |
| 0.4.54 | 183 | 7/6/2026 |
| 0.4.53 | 129 | 7/5/2026 |
| 0.4.52 | 122 | 7/5/2026 |
| 0.4.51 | 148 | 7/4/2026 |
| 0.4.50 | 222 | 7/3/2026 |
| 0.4.49 | 112 | 7/3/2026 |
| 0.4.48 | 100 | 7/3/2026 |
| 0.2.18 | 103 | 5/1/2026 |