模组简介
尖塔教练 / Spire AI Coach 《杀戮尖塔 2》的战斗助手:AI 本回合指导、本地整场战斗规划,以及自动执行方案。用于娱乐、研究与比较打法。 遇到不喜欢、懒得打的怪?让尖塔教练帮你代打。 按 F8 打开面板,选择“路线采样算法”或“分支扩展算法”,计算出方案后点击“执行方案”,就能让教练按方案打完这场战斗。本地计算与代打无需 API Key;支持单人战斗,Esc 可随时停止,实际状态偏离方案时也会自动停止。 功能 • AI 根据手牌、牌堆、Buff、遗物、药水和敌人意图给出本回合建议,支持流式回复。 • “路线采样”和“分支扩展”都计算整场战斗,无需 API;优先降低战后净损血,计入回血,同等损失优先保留药水。 • 可设置并发、次数、搜索时间、回合上限、提前返回条件,以及用药、补刀和目标牌选项。 • 可查看进度、路线与耗时,并继续搜索。 • 可切换半透明精简浮窗,只保留计算、执行、停止等基础功能;显示准备、搜索、复核阶段和实际评估数量。 • 自动执行支持单人战斗;实际状态偏离方案时停止。 使用 • 订阅、启动游戏并启用 Mod。创意工坊版与手动安装版选一种。 • 按 F8 打开/收起面板,在“本地整场计算”选择“路线采样算法”或“分支扩展算法”。 • 获得方案后可手动照做,或点击“执行方案”;Esc 停止执行。 • 使用 AI 时填写 Chat Completions 兼容服务的 URL、模型和 API Key,保存后点击“AI 分析”。这会向所填服务商发送战斗信息,可能产生 API 费用。 兼容与算法优化 0.7.90:新增半透明精简浮窗和阶段进度显示;修复已验证版本“死亡之环”符文的内部触发计数还原,避免模拟与实际执行选择不同目标。补刀探索会保留仍有机会的路线,手牌改变后重新判断历史风险;不保证指定牌目标一定完成。 2026-10-16 更新:修正回血来源与条件回血目标判断,改进弃牌后防御、苦无出牌顺序、毒的后续收益和低受伤路线探索;前面的选择改变后,会重新检查后续结束回合。最终选路仍优先战后血量,可能选择触发复活的路线。 为尽力兼容不同 Mod,搜索尽量复用游戏底层规则和已加载的 Mod 钩子,模拟出牌与结算,减少逐卡适配。部分 Mod 仍可能需要额外处理。 已验证 Windows x64 / 游戏 v0.111.0,界面主要为中文。搜索受时间和次数限制,结果不保证全局最优。 欢迎通过 GitHub Issue / PR 改进算法,争取以最快的方式找到损伤最低、更接近或可证明最优的完整获胜路线。 English A Slay the Spire 2 battle assistant: AI advice for the current turn, local whole-battle planning, and plan execution. Built for fun, research and comparing strategies. An enemy you don't feel like fighting? Let Spire AI Coach take over. Press F8, choose Rollout Sampling or Branch Expansion, then click “执行方案” once a plan is ready to have the coach play out the battle. Local planning and execution need no API key. Singleplayer only; press Esc to stop at any time. Execution also stops if the actual state diverges from the plan. • AI uses your hand, piles, buffs, relics, potions and enemy intents to suggest plays, with streamed replies. • Rollout Sampling (路线采样) and Branch Expansion (分支扩展) both plan the whole battle without an API. Plans prioritize net HP loss including healing; equal-loss routes prefer preserving potions. • Configure concurrency, attempts, search time, turn limits, stopping conditions, potion use and card goals. Inspect progress, routes and timing, or continue searching. • Switch to a small translucent panel with basic compute, execute and stop controls. See preparation, search and verification stages with actual evaluated-route counts. • Subscribe, enable the mod and press F8 to open/close the panel. Choose either the Workshop or manual installation. • Follow a plan manually or click “执行方案” to execute in singleplayer. Esc stops execution; divergence from the plan also stops it. • AI requires a Chat Completions compatible URL, model and API key. Clicking AI analysis sends combat information to your provider and may incur charges. 0.7.90: added the compact translucent panel and phase progress display. Restores the internal trigger counter for the validated Circle of Death rune version to keep simulated and actual target selection aligned. Finisher exploration preserves remaining opportunities and scopes historical risk to the observed hand; completing a requested card goal is not guaranteed. 2026-10-16 update: improved recovery-source and conditional-healing analysis, discard/block sequencing, Kunai/poison tactics and low-damage route exploration. Changed earlier choices prompt another check of later end-turn decisions. Final selection still prioritizes ending HP and may choose a route that consumes revival. Local search aims to support different mods by reusing underlying game rules and loaded mod hooks. Some mods may need additional integration. Validated on Windows x64 / game v0.111.0; in-game labels are mainly Chinese. Budgeted search does not guarantee globally optimal results. Contributions are welcome! Help find complete winning routes with the lowest damage, approaching or proving optimal play, as quickly as possible. 源码与致谢 / Source and credits GitHub · Source · Issues / PRs English documentation 开发参考了 CombatSolver、autoSpire、SpireVibePlaying、ModTemplate-StS2 等项目。 Development referenced CombatSolver, autoSpire, SpireVibePlaying and ModTemplate-StS2. 致谢与来源 / Acknowledgements and sources 原创代码采用 MIT 许可。本项目是独立社区 Mod。 Original code uses the MIT License. This is an independent community mod.
详情图片
条目信息
- 所属游戏
- 杀戮尖塔 2 (Slay the Spire 2)
- 创意工坊 ID
- 3814010843
- 文件名
- 3814010843.bin
- 文件大小
- 1.3 MB
- 最后更新
- 2026/10/16
- 内容版本
- v1792150621-a73a4c06ca81cc66
- 作者与来源
- 由原作者发布于 Steam 创意工坊。本站不改变署名,作者信息与原始内容请以 Steam 原始页面 为准。
