Baka_Gaijin-FinalSunsetPermadeath icon

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 wiped. SecondChance-compatible.

CHANGELOG

Changelog

1.4.1

  • FIX: the mod is now authoritative over death regardless of the world's difficulty/preset. If the world has the Hardcore death penalty baked in (the deathdeleteitems / deathdeleteunequipped world modifiers), vanilla would delete your entire inventory on death and never create a tombstone — so nothing was kept and no grave appeared. A new patch (Patch_NeutralizeDeathDeleteModifier) intercepts every single-argument ZoneSystem.GetGlobalKey overload (string and GlobalKeys enum) and reports those two death-delete keys as inactive, so vanilla always builds the tombstone and the keep-equipped-gear logic runs. Every other world modifier (no-map, portals, boss keys, etc.) is untouched.
  • The death check runs on the dying player's client, so this DLL must be present on the server and every client for the grave to appear for that player. Network compatibility is unchanged (1.4.x), so 1.4.0 clients can still connect — but they must update to 1.4.1 for the fix to apply to their own deaths.

1.4.0

  • NEW: The worn AdventureBackpacks backpack is kept in the grave, but its STORED CONTENTS are now WIPED on death. You recover the backpack item itself, but everything inside it is destroyed — closing the permadeath loophole where a full backpack rode along untouched on the kept backpack item. Implemented via the AdventureBackpacks public API (ABAPI.GetBackpack) → live backpack Inventory.RemoveAll() → persisted through the Vapok custom-data save path (ItemExtensions.Data(item).Save()); the tombstone container is then force-re-serialized via Inventory.m_onChanged so the grave stores the emptied backpack. AdventureBackpacks is a soft dependency — no effect if it isn't installed.
  • Server enforcement bumped to 1.4.x (NetworkCompatibility(EveryoneMustHaveMod, Minor)): clients on 1.3.x or earlier, or missing the mod, are now rejected at the connection screen with a version-mismatch UI. Update all clients.
  • Tombstone log now reports kept N item(s) (equipped + extra slots) in grave, destroyed M item(s), wiped K item(s) from backpack(s).

1.3.0

  • CHANGE: The keep-set expanded from "equipped only" to "equipped + ALL ExtraSlots special slots". On death, everything in an ExtraSlots slot — equipment, trinket/utility, food, ammo/arrows, quick, misc, and the worn backpack — plus your vanilla equipped gear (armor, cape, shield, and the currently equipped weapon/tool/pickaxe) is now KEPT IN YOUR GRAVE. Only loose loot in the vanilla backpack grid and hotbar is destroyed. Skills still reset to 0. ExtraSlots is a soft dependency: if it's absent, the mod falls back to the v1.2 equipped-only behaviour.
  • ExtraSlots items are captured by object-reference snapshot in the CreateTombStone Prefix (before they move into the grave), queried through ExtraSlots.API.GetAllExtraSlotsItems().
  • Server enforcement bumped to 1.3.x (NetworkCompatibility(EveryoneMustHaveMod, Minor)): clients on 1.2.x or missing the mod are now rejected. Update all clients.
  • Tombstone log now reports kept N item(s) (equipped + extra slots) in grave, destroyed M item(s).

1.2.0

  • NEW: Server now REQUIRES this mod on every client. Via Jötunn NetworkCompatibility(EveryoneMustHaveMod, Minor), any client missing the mod or running a different major.minor version (e.g. 1.1.x) is rejected at the connection screen with a version-mismatch UI. This guarantees death processing is consistent for everyone — no friend can connect without keeping their worn gear / losing the rest. Requires Jötunn (added as a dependency).
  • CHANGE: Equipped gear is now KEPT IN YOUR GRAVE on death (recoverable) instead of destroyed. Walk back to your tombstone to reclaim the armor/weapon/shield/utility you were wearing. Everything non-equipped (hotbar, inventory, food, ammo, misc) is still destroyed, and all skills still reset to 0.
  • Equipped items are identified by an object-reference snapshot taken in the CreateTombStone Prefix, before the items move into the tombstone — robust against the equipped flag being cleared during the move. The m_equipped flag is used as a secondary fallback.
  • Tombstone log now reports kept-vs-destroyed counts: kept N equipped item(s) in grave, destroyed M item(s).

1.1.0

  • FIX: Wrong tombstone targeted during boss fights — v1.0 used proximity-based search (nearest within 4m) which could target another player's tombstone or an old uncollected one. Now uses instance-ID tracking: Prefix snapshots all existing tombstone IDs, Postfix finds the exact new tombstone created by this death.
  • FIX: Old tombstone near death position — no longer possible to accidentally destroy items from a previous death's tombstone.
  • Tombstone destruction log now includes instance ID for debugging.

1.0.0

  • Initial release
  • Destroys all inventory and hotbar items on death (tombstone spawns empty)
  • Resets all skill levels (vanilla + modded) to 0 on death
  • SecondChance-safe: only fires on real death, not downed state
  • ExtraSlots-compatible: equipped armor preserved, everything else destroyed
  • Reflection-based skill access (works with modded skills from Smoothbrain etc.)