FinalSunsetPermadeath
Hardcore permadeath: loose loot destroyed on death, all skills reset to zero. Equipped gear AND every ExtraSlots slot are left in your grave to recover; worn backpack is kept but its contents are wipe
模組介紹 作者原文
Final Sunset Permadeath
Hardcore death penalties for the Final Sunset modpack. When you die for real, you lose your loose loot and skills — but the gear you were wearing and everything in your special slots stays in your grave to be recovered.
What happens on death
| Slot | Result |
|------|--------|
| Equipped gear (armor, weapon, shield, cape, utility, trinket) | KEPT IN GRAVE — walk back to your tombstone to recover |
| ExtraSlots: equipment, trinket/utility, food, ammo, quick, misc | KEPT IN GRAVE |
| Worn AdventureBackpacks backpack | ITEM KEPT IN GRAVE, but its stored contents are WIPED |
| Hotbar (slots 1-8) | DESTROYED |
| Inventory (vanilla backpack grid) | DESTROYED |
| All skill levels | RESET TO 0 |
| Tombstone | Holds your equipped gear + all ExtraSlots items (backpack emptied) |
Loose items in the vanilla backpack grid and hotbar are permanently destroyed — not dropped, not recoverable. The contents stored inside a worn backpack are also destroyed (the backpack itself is kept). Skills are fully zeroed, not just reduced. Your worn gear and special-slot items survive in the tombstone.
Edge case safety (v1.1)
- Boss fights / multi-death: Each client tracks tombstone instance IDs before and after death. Only the tombstone created by YOUR death is processed — never another player's, never an old uncollected one.
- Old tombstones nearby: Instance-ID tracking means proximity doesn't matter. Your old tombstone 1m away is safe.
How gear and slots are kept (v1.2 / v1.3)
In the CreateTombStone Prefix the plugin snapshots the object references of every item that should be kept — captured before those items move into the tombstone:
- vanilla equipped items (m_equipped): weapon, tool, shield, armor, cape…
- every item in an ExtraSlots special slot, via ExtraSlots.API.GetAllExtraSlotsItems() (equipment, trinket/utility, food, ammo, quick, misc, and the worn backpack item)
In the Postfix it removes everything from the new tombstone except those snapshotted references (with the m_equipped flag as a fallback). Because the references survive the move, this works even if the game clears the equipped flag during death processing.
ExtraSlots and AdventureBackpacks are both soft dependencies (queried by reflection). If ExtraSlots is absent, the keep-set falls back to equipped-only (v1.2 behaviour). If AdventureBackpacks is absent, the backpack-wipe step is skipped.
Backpack content wipe (v1.4)
A worn AdventureBackpacks backpack is one of the items kept in the grave (it's equipment). To prevent it from being a permadeath loophole, its stored contents are emptied: the plugin resolves the backpack via AdventureBackpacks.API.ABAPI.GetBackpack(item), clears the backpack's internal inventory, and persists the emptied state through the Vapok custom-data save path so the grave stores an empty backpack. You keep the backpack; you lose what was inside it.
SecondChance compatibility
This plugin is fully compatible with BalrondSecondChance's downed/revive system:
- Downed (HP reaches 0): SecondChance activates. You can be revived by a friend (free) or self-revive with MeadHealthMinor. No permadeath penalties applied.
- Dead (revive timer expires): Permadeath penalties fire. Non-equipped items destroyed, equipped gear left in grave, skills reset.
The plugin detects real death vs downed state by tracking whether CreateTombStone was called inside OnDeath. If SecondChance blocks death (downed state), no tombstone is created and the plugin skips.
Server enforcement (v1.2 / v1.3)
The server requires this mod on every connecting client, at a matching major.minor version (now 1.4.x). This is enforced through Jötunn's NetworkCompatibility(EveryoneMustHaveMod, VersionStrictness.Minor):
- A client missing the mod → rejected at the connection screen.
- A client on an older version (e.g. 1.3.x) → rejected with a version-mismatch UI listing the offending mod.
- A client on 1.4.x → allowed.
This guarantees death processing is identical for everyon
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: