英灵神殿v2.2.02026年10月8日 更新

Gravekeeper – Valheim BepInEx 插件

可配置死亡后保留的物品,并为容量不足的背包生成额外墓碑。可分别启用物品保留与墓碑处理功能,也能配置墓碑物品删除规则。

Gravekeeper – Valheim BepInEx 插件

Gravekeeper 可配置角色死亡后保留哪些物品,并在背包物品过多、单个墓碑无法容纳时生成额外墓碑。

功能

KeepInventory(物品保留)

可配置死亡后保留的内容,包括全部物品、已装备物品、快捷栏物品及指定物品类别。具体选项见下方配置示例;这些是配置文件生成时使用的默认值。

Grave(墓碑)

  • 如果第一个墓碑无法容纳背包中的全部物品,可生成额外墓碑。此功能可配置,作者建议保持开启。
  • 如果死亡时原本不会生成墓碑,可选择生成一个内含一块石头的墓碑。
  • 可选择在死亡时删除墓碑中的物品,并按物品类别指定删除范围。KeepInventory 保留的物品仍会保留。

KeepInventory 与 Grave 两个部分可分别启用或禁用。

配置

可在游戏内通过 ConfigurationManager 修改配置。打开 ConfigurationManager 前,请先打开背包,以便鼠标悬停在选项上时显示说明提示。

也可手动编辑配置文件:

<GameLoacation>/BepInEx/config/net.mtnewton.gravekeeper.cfg

以下为配置示例:

[KeepInventory]

## Should Gravekeeper modify what is kept on death?
## Turn on the below Keep options to change what is kept on death
## (If using ConfigManager, the Keep options are Advanced Settings)
# Setting type: Boolean
# Default value: true
Enabled = true

## Keep all items on death.
## If set to false, the below options can be set to true to allow for only keeping specific item types.
# Setting type: Boolean
# Default value: true
KeepAll = true

KeepHotbar = false
KeepEquipped = false
KeepEquipment = false
KeepOneHandedWeapons = false
KeepTwoHandedWeapons = false
KeepShields = false
KeepBows = false
KeepHelmets = false
KeepChests = false
KeepLegs = false
KeepHands = false
KeepShoulders = false
KeepUtility = false
KeepTorchs = false
KeepAmmo = false
KeepMaterials = false
KeepConsumables = false
KeepTrophies = false
KeepMisc = false
KeepTools = false

[Grave]

## Should Gravekeeper modify how graves are created?
## Enables this entire section
# Setting type: Boolean
# Default value: true
Enabled = true

## If no graves are to be created, create one with a stone in it.
# Setting type: Boolean
# Default value: false
KeepGrave = false

## Items that would go to the grave are deleted
## Control what gets deleted with the below Delete options (If using ConfigManager, the Delete options are Advanced Settings)
# Setting type: Boolean
# Default value: false
DeleteItems = false

## All items are deleted from the grave
## If set to false, the other Delete options can be set to true to allow for only deleting specific item types
# Setting type: Boolean
# Default value: true
DeleteAll = true

DeleteHotbar = false
DeleteEquipped = false
DeleteEquipment = false
DeleteOneHandedWeapons = false
DeleteTwoHandedWeapons = false
DeleteShields = false
DeleteBows = false
DeleteHelmets = false
DeleteChests = false
DeleteLegs = false
DeleteHands = false
DeleteShoulders = false
DeleteUtility = false
DeleteTorchs = false
DeleteAmmo = false
DeleteMaterials = false
DeleteConsumables = false
DeleteTrophies = false
DeleteMisc = false
DeleteTools = false

安装

  1. 下载并安装 BepInEx Valheim。
  2. 下载本模组,将 Gravekeeper.dll 放入 <GameLocation>\BepInEx\plugins。
  3. 启动游戏后,会在 <GameLocation>\BepInEx\config 下生成配置文件。

更新日志

  • v2.2.0
    • 为 DeleteItems 添加与 Keep 相同的选项,可选择墓碑中哪些物品会被销毁。
    • 兼容 ConfigurationManager,可在游戏内修改配置。
  • v2.1.1
    • 为 KeepInventory 添加更多选项:
      • Equipment:检查 ItemDrop.ItemData.IsEquipable()。
      • 支持大多数 ItemDrop.ItemData.ItemTypes。
    • KeepInventory 会保留任务物品,避免启用 Grave 的 DeleteItems 后意外删除这些物品。
  • v2.1.0
    • 恢复死亡时保留墓碑的选项。
    • 添加死亡时删除物品的选项;符合 KeepInventory 标记的物品仍会保留。
    • KeepInventory 的 Enabled 标记此前意外默认为 false。
  • v2.0.0
    • 重构代码。
    • 新增配置项,请务必设置这些配置。
    • 添加保留快捷栏、装备、消耗品和弹药的功能,同时保留保留全部物品的选项。
    • 添加墓碑生成处理:如果原墓碑无法容纳玩家背包中的所有物品,就会生成额外墓碑。
  • v1.2.0
    • 更换图标;作者此前没有意识到那是墓碑背面。
    • 内部机制调整:现在会阻止物品进入墓碑;此前会将墓碑物品栏中的所有物品移回玩家物品栏。
    • 添加配置:
      • KeepGravestone(false):选择是否让墓碑留在游戏世界中(墓碑物品栏中会添加一块石头)。
      • KeepItemsEquipped(true):选择玩家死亡时是否卸下装备。
  • v1.1.2:更新说明文档;此版本的模组不会生成配置文件。
  • v1.1.1:修正说明文档中的 DLL 文件名和拼写错误。
  • v1.1.0:更新说明文档,加入安装步骤与更新日志;重构代码以简化实现。
  • v1.0.0:初始版本;玩家死亡后会将物品返还给玩家。

源代码

https://github.com/mtnewton/valheim-mods/tree/master/Gravekeeper

来源与文件

文件说明

Configure to choose what is keep on death. Creates graves for larger inventories.

来源列出的依赖与关系

前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:nexusmods:valheim:65 -->

下载模块

共 1 个来源
立即下载推荐来源
前往下载