Skip to content

Repository files navigation

LexNinja2

蕾忍Mod杀戮尖塔2的版本

Development

Prerequisites:

Getting Started:

  1. Clone the repository:

    git clone <repository-url>
    cd LittleWizard
  2. Restore NuGet packages:

    dotnet restore
  3. Install Spine-Godot plugin:

    • Download the plugin from spine-godot-extension-4.2-4.5.1-stable.zip
    • Extract the ZIP file and locate the bin folder inside
    • Copy the entire bin folder directly to the project root directory (same level as project.godot)
  4. Create configuration file:

    • Create a file named Directory.Build.props in the project root directory
    • Add the following content (replace with your actual paths):
      <Project>
          <PropertyGroup>
              <GodotPath>Your Godot installation directory</GodotPath>
              <SteamLibraryPath>Your Steam library directory containing Slay the Spire 2</SteamLibraryPath>
          </PropertyGroup>
      </Project>
  5. Code Formatting:

    • This project uses CSharpier for code formatting
    • Install CSharpier (recommended as a VS Code or Rider plugin)
    • Code is automatically formatted on build, or you can run the format command manually
  6. Start Developing:

    • Use dotnet build to compile only the DLL files
    • Use dotnet release to not only compile DLLs, but also export PCK files and copy JSON files, PDB files (if DebugMode is enabled) to the Slay the Spire 2 mod directory
  7. Versioning:

    • The version number is automatically generated from Git tags.
    • If the current commit is exactly on a tag (e.g., v1.3.5) and the working tree is clean (no uncommitted changes), the version will be the short form v1.3.5.
    • Otherwise (extra commits, dirty working tree, or no tag), the version will be the full git describe --long --dirty output, e.g., v1.3.5-2-g123abcd or v1.3.5-0-g70ca280-dirty.
    • The version is written into LexNinja2.json and also used as Version and FileVersion in the assembly.
  8. Extended Reading:

About

蕾忍Mod杀戮尖塔2的版本

Resources

Stars

24 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages