DelicateWatchSaver
Prevents accidental Delicate Watch breakage from health-costing interactions. Configurable.
模組介紹 作者原文
Delicate Watch Saver
Adds a safety confirmation to any interaction that costs health (such as Blood Shrines or Void Cradles). If the health cost would drop you below the 25% threshold and break your Delicate Watches, the interaction is temporarily blocked, and you are prompted to interact again to confirm within a short window.
Features
- Smart Calculation: Simulates the incoming damage by checking your current Barrier, Shields, and Health to determine if your Delicate Watches will actually break.
- Double-Tap Confirmation: If your watches are at risk, you must interact with the object a second time within a configurable window (default 3 seconds) to proceed.
- Debounce Protection: Features a configurable minimum delay (debounce) between the first block and the confirmation click to prevent accidental double-clicks from bypassing the warning.
- Safer Spaces & Deus Ex Machina: By default, no warning is shown if your Safer Spaces is ready, or if you are actively parrying with the Deus Ex Machina equipment (from the Alloyed Collective DLC).
- In-Game Configuration: Full support for Risk of Options, allowing you to tweak settings directly in the game options menu.
- Anti-Steal Protection: Confirmation timers are tied strictly to the player who triggered them, so a low-health teammate cannot accidentally trigger a shrine you just soft-locked.
- Configurable Networking:
- Local Mode (Default): Fully client-side. Works on any server. Warning messages are private and visible only to you.
- Global Mode: Host-side. Protects everyone in the lobby, even players without the mod. Warning messages are broadcast to the global chat with player names.
Configuration
The following settings can be tweaked in-game using Risk of Options, or manually in the BepInEx configuration file:
- Global Mode: Toggle between Global (Server) and Local (Client) modes.
- Confirm Window: Time in seconds allowed for the second confirmation click.
- Debounce Time: Minimum delay in seconds required before the second click is accepted. Prevents accidental instant double-clicks (default is 0.3).
- Custom Warning Text: Custom chat warning message. Supports {0} for the timer and {1} for the player's name (in Global Mode).
- Custom Debounce Warning Text: Custom short warning displayed when clicking too fast (debounce).
- Trust Safer Spaces: Disables warnings if Safer Spaces is currently ready to absorb the hit.
- Trust Parry: Disables warnings if you are actively parrying (e.g. using Deus Ex Machina equipment).
- Enable Debug Logs: Prints calculations to the console for troubleshooting.
Known Limitations
- Warped Echo: The damage-splitting effect of Warped Echo is not calculated due to its highly unpredictable nature (players can easily heal between damage ticks, trigger other items, etc.). Calculations are processed as if Warped Echo is not present to stay on the safer side.
- Tougher Times: The mod cannot predict whether damage will be blocked by Tougher Times, so confirmation may still be required even at very high block chances.
Technical Note
This mod's code was created with the assistance of an AI (LLM) and subsequently refined. I don't know how to code.
If a client with the mod joins a server running in Global Mode, the server sends an invisible handshake. The client automatically disables their local checks, preventing the "double confirmation" issue and deferring entirely to the server's protection. If the host toggles Global Mode on/off mid-game, a real-time handshake update is sent, and clients instantly adapt their protection modes accordingly.
Planned / Future Updates
- Power Elixir / Unstable Transmitter: Currently, warnings are still shown if you have Delicate Watches together with a Power Elixir or Unstable Transmitter. While these items would save your watches, they consume themselves in the process, so whether to block the interaction in these scenarios is still under consideration.
Contact & Support
If you encounter any issues or have suggesti
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: