StS2 DevelopSugar is a Slay the Spire 2 modding toolkit repository.
It contains:
- Roslyn analyzers for StS2-oriented C# authoring rules
- source generators used by StS2 mod projects
- Roslyn code fixes for supported diagnostics
- a Godot sample/template project
- a console project creator that scaffolds new Godot-based mod projects
This project contains the Roslyn analyzer and source generator logic.
Use it when you want:
- diagnostics while writing StS2 mod code
- generated helper code for supported patterns
- a shared compile-time toolchain for StS2 mod projects
This project contains the Roslyn code fixes and is also the current NuGet packaging entry point for the analyzer toolchain.
In practice, this is the project that assembles the final package containing:
StS2_DevelopSugar.Analyzers.dllStS2_DevelopSugar.CodeFixes.dll
This is the Godot-side sample project and template source.
It includes:
- the Godot plugin used during StS2 mod development
- template files for new projects
- release-to-mods tooling
- reference documentation under
.readme/
This is the recommended entry point for creating a new project.
It is a console application that creates a Godot template project with the expected structure and metadata already filled in.
Current features include:
- command-line creation mode
- no-argument wizard mode
- automatic Slay the Spire 2 installation discovery
- localized prompts based on the OS UI language
If you want to start a new project, the recommended path is:
- Download the latest
ProjectCreatorbuild from the repository release page. - Run the creator and generate a new Godot project from the template.
- Open the generated project in Godot and continue development there.
This is preferred over copying StS2_DevelopSugar.Godot manually, because the creator:
- keeps template metadata consistent
- writes project-specific names and identifiers for you
- can resolve the local Slay the Spire 2 installation automatically
- is the intended distribution path for the template project
Use StS2_DevelopSugar.ProjectCreator.
If you run it without arguments, it starts an interactive wizard.
Use the NuGet package produced from StS2_DevelopSugar.CodeFixes.
That package is intended to carry the analyzer/generator/code-fix toolchain together.
Work in:
StS2_DevelopSugar.GodotStS2_DevelopSugar.ProjectCreator/TemplateSource/GodotProject
The Godot project is the functional reference project, and the creator embeds the cleaned template source during build.
To build the Roslyn tooling:
dotnet build .\StS2_DevelopSugar.Analyzers\StS2_DevelopSugar.Analyzers.csproj
dotnet build .\StS2_DevelopSugar.CodeFixes\StS2_DevelopSugar.CodeFixes.csprojTo build the project creator:
dotnet build .\StS2_DevelopSugar.ProjectCreator\StS2_DevelopSugar.ProjectCreator.csprojTo pack the current analyzer/code-fix NuGet package:
dotnet pack .\StS2_DevelopSugar.CodeFixes\StS2_DevelopSugar.CodeFixes.csproj -c Release.readme/directories are intentionally tracked. They are part of the project and template documentation.local.props,.godot,.dotnet,bin,obj, and similar generated files are intentionally excluded from version control.