Zurück zu Mods
UndoAndRedo
Gameplay

UndoAndRedo

von Jiesi Luov1.0.0

Combat undo/redo for Slay the Spire 2.

Erstellt

9. März 2026

Aktualisiert

18. März 2026

Auf Nexus Mods ansehen

Beschreibung

Diese Beschreibung wird vom Mod-Autor auf Nexus Mods auf Englisch bereitgestellt.
Press Left Arrow to undo, Right Arrow to redo.
Features
  • Undo/redo card plays, end turn, potion use, and potion discard
  • Full combat state snapshot — HP, block, powers, energy, cards, RNG, monster moves, relics, potions, orbs, and more
  • Visual refresh — hand cards, power icons, potion slots, pile counts, monster intents, and card descriptions all update correctly
  • Only active during your turn when the action queue is idle — no risk of corrupted state

Credits
Inspired by Undo the Spire for Slay the Spire 1, created by filippobaroni (Steam Workshop). This STS2 version is a ground-up rewrite for the Godot/.NET architecture but follows the same core concept of full combat state snapshots.
How It Works
Before each player action (play card, end turn, use/discard potion), the entire combat state is snapshotted. On undo, the previous snapshot is restored directly — no replay. Visual nodes are refreshed to match the restored state.
Limitations
  • Single-player only
  • Cannot undo during enemy turn or mid-animation
  • Undo is per-action, not per-card-selection

Only tested in windows + single player.

https://github.com/luojiesi/SLS2Mods/tree/master