返回模組列表
Death Intercept
遊戲玩法

Death Intercept

作者:Hengaaaav1.1

DeathIntercept is a mod for Slay the Spire 2 that lets you choose whether to retry a combat or give up when your character dies.

建立時間

2026年5月12日

更新時間

2026年5月13日

在 Nexus Mods 查看

詳情介紹

此模組描述由作者在 Nexus Mods 上以英文提供。

DeathIntercept / 死亡拦截



Slay the Spire 2 mod screenshot

—

English

What is this?

DeathIntercept is a mod for Slay the Spire 2 that lets you choose whether to retry a combat or give up when your character dies. Instead of immediately ending your run and deleting the auto-save, the mod pauses the death flow and presents a dialog:

  • Retry (Enter) — Reload the combat directly from the pre-combat save. The fight restarts from round 1.
  • Give Up (Esc) — Proceed with the normal game over flow. Saves your score, badges, and run history.
How it works

  1. Intercepts CreatureCmd.Killbefore the death music and game-over logic run.
  2. Preserves the run save by blocking SaveManager.DeleteCurrentRun.
  3. On retry, reloads the combat in-place using the same flow as the main menu "Continue" button — no main menu transition.
Installation

  1. Drop DeathIntercept.dlland DeathIntercept.jsoninto Slay the Spire 2/mods/DeathIntercept/.
  2. Launch the game. The mod auto-activates.
Credits

The combat reload logic is adapted from STS2-QuickReload, specifically the
QuickReloadRunner.RestartSinglePlayer()flow. Thank you for the reference implementation!

—

汉语

这是什么?

DeathIntercept 是《杀戮尖塔2》的一个 Mod,让你在角色阵亡时可以选择重打或放弃。不再直接结束对局并删除自动存档,而是暂停死亡流程,弹出对话框:

  • 重打(Enter)—— 从战斗前存档直接重载战斗,从第一回合重新开始。
  • 放弃(Esc)—— 走正常游戏结束流程,保存分数、徽章和对局历史。
原理

  1. 在战败 BGM 和游戏结束逻辑运行之前拦截 CreatureCmd.Kill。
  2. 通过拦截 SaveManager.DeleteCurrentRun保护战斗前存档不被删除。
  3. 选择重打时,复用主菜单「继续」按钮的流程原地重载战斗——无需返回主菜单,无需额外点击。
安装

  1. 将 DeathIntercept.dll和 DeathIntercept.json放入 Slay the Spire 2/mods/DeathIntercept/。
  2. 启动游戏,Mod 自动激活。
鸣谢

战斗重载逻辑参考了 STS2-QuickReload,尤其是
QuickReloadRunner.RestartSinglePlayer()的实现。感谢参考代码!

—

GitHub: Douvahkiin/StS2-DeathIntercept
Death Intercept | STS2 (殺戮尖塔2) Mod詳情 | STS2.GG