英灵神殿v1.0.32026年10月8日 更新

Valheim - Glutton 食物管理器

通过可自定义的快捷键自动食用背包中的食物。默认情况下,食物增益开始闪烁时,模组会自动食用背包中可用的最佳食物;另有多种选项可调整自动进食行为。

Glutton 食物管理器

为 Valheim 自动管理进食:可通过可自定义的快捷键开关自动进食。默认设置下,当食物增益开始闪烁时,模组会食用背包中可用的最佳食物。

功能

  • 剩余持续时间低于指定阈值时,食用相同食物
  • 根据背包中的食物,尽量维持最大数量的食物增益
  • 使用自定义快捷键开关自动进食
  • 优先自动食用评分最高或最低的食物
  • 将食物效果标准化,使生命值或耐力获得固定数值的增益
  • 忽略背包要求,食用游戏中最佳食物
  • 调整可同时生效的食物数量
  • 设置食用后是否从背包移除食物
  • 调整食物评分计算权重,使其偏向特定属性

安装

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

默认快捷键

切换自动进食:LeftShift + T

配置

可在游戏内使用 BepInEx Configuration Manager 配置。打开 ConfigurationManager 前,请先打开背包;将鼠标悬停在选项上时,工具提示才会显示。

也可以手动编辑配置文件。

**注意:**需要重启游戏才能生效的选项以双星号(**)标记。

设置文件示例

## Settings file was created by plugin Glutton v1.0.0
## Plugin GUID: org.tonsit.glutton

[General]

## Allow Glutton to eat food.
# Setting type: Boolean
# Default value: true
Auto Eat = true

## The percentage of the food duration at which to attempt to eat the same food. Range: 1-50
# Setting type: UInt32
# Default value: 50
# Acceptable value range: From 1 to 50
Refresh Food at Percentage = 50

## Whether Glutton should try to keep maximum food buffs applied.
# Setting type: Boolean
# Default value: true
Eat Maximum Foods = true

## When 'Eat Maximum Foods' is enabled, eat foods with best scores first. Set this to false to eat the lowest scored foods first.
# Setting type: Boolean
# Default value: true
Eat Best Foods First = true

## Serve any food available in the game, regardless of your inventory
# Setting type: Boolean
# Default value: false
Ignore Inventory = false

## How many foods can be active at one time. Note: The UI does not support more than 3 buffs, however the increased stamina and health will still be applied. Restart required.
# Setting type: UInt32
# Default value: 3
# Acceptable value range: From 0 to 25
**Maximum Food Count = 3

## When enabled food will provide a static buff rather than provide less benefit over time. Defaults to 50% of maximum food value (Average benefit over its duration). HP and Stamina benefits may be adjusted in advanced options. Restart Required
# Setting type: Boolean
# Default value: false
**Normalize Food Benefits = false

## Set the percentage for the food health. Defaults to 50% of the foods maximum benefit, which is the average of its duration. Setting this value to 100 makes food provide its maximum benefit. Setting this to 0 would make food provide no health benefit. Ignored when Normalize Food is disabled. Restart required.
# Setting type: UInt32
# Default value: 50
# Acceptable value range: From 0 to 100
**Food Health Benefit = 50

## Set the percentage for the food stamina. Defaults to 50% of the foods maximum benefit, which is the average of its duration. Setting this value to 100 makes food provide its maximum stamina benefit. Setting this to 0 would make food provide no stamina benefit. Ignored when Normalize Food is disabled. Restart required.
# Setting type: UInt32
# Default value: 50
# Acceptable value range: From 0 to 100
**Food Stamina Benefit = 50

## Set the duration for the food timer. This also impacts the rate at which the food benefits decay unless Normalize Food Benefits is enabled. Restart required.
# Setting type: DurationTypes
# Default value: Normal
# Acceptable values: Infinite, Longer, Long, Normal, Short, Shorter
**Food Duration = Normal

## Should eating an item reduce the stack count in your inventory? IgnoreInventory overrides this to false.
# Setting type: Boolean
# Default value: true
Remove Eaten Item From Inventory = true

[Keyboard shortcuts]

## Keyboard shortcut to enable/disable Glutton
# Setting type: KeyboardShortcut
# Default value: T + LeftShift
Toggle Automatic Eating = T + LeftShift

[Weighted Food Score]

## The multiplier to use when calculating the Food Score.
# Setting type: Int32
# Default value: 50
# Acceptable value range: From 0 to 100
Health Score Weight = 50

## The multiplier to use when calculating the Food Score.
# Setting type: Int32
# Default value: 50
# Acceptable value range: From 0 to 100
Stamina Score Weight = 50

## The multiplier to use when calculating the Food Score.
# Setting type: Int32
# Default value: 50
# Acceptable value range: From 0 to 100
Burn Time Score Weight = 50

## The multiplier to use when calculating the Food Score.
# Setting type: Int32
# Default value: 50
# Acceptable value range: From 0 to 100
Regen Score Weight = 50

配置示例

启用后,Normalize Food Benefit 会让食物提供固定效果,默认值为该食物最大效果的 50%(即其持续时间内的平均效果)。可在高级选项中进一步调整效果百分比。

给予最大生命值和耐力效果,并在效果结束时刷新:

Refresh Food at Percentage = 1
**Normalize Food Benefit = true
**Food Health Benefit = 100
**Food Stamina Benefit = 100

仅刷新手动食用过的食物:

Auto Eat = true
Refresh Food at Percentage = 50
Eat Maximum Foods = false

忽略背包限制,食用游戏中最佳食物:

Auto Eat = true
Refresh Food At Percentage = 50
Ignore Inventory = true
**Maximum Food Count = 22

更新日志

  • v1.0.3
    • 更新食物持续时间说明,加入百分比信息。
    • 添加日志详细程度选项,以降低默认输出量。
  • v1.0.2
    • 修复登录时增益已生效导致食物不刷新的问题。
    • 修复增益在更新检查之间消失时食物不刷新的问题。
  • v1.0.1
    • 修复从背包消耗锅具的问题。
    • 修复多人游戏中快捷键会向其他玩家发送刷屏内容的问题。
    • 防止在各类文本框打开时触发快捷键。
  • v1.0.0
    • 添加用于切换模组行为的快捷键。
    • 调整配置,以更好地支持 BepInEx Configuration Manager。
    • 为 UpdateFood 补丁添加节流,以提升性能。
    • 添加调整活动食物增益数量的选项,可超过游戏的 3 个上限。
    • 添加自动从背包中选择并食用评分最高或最低食物的选项。
    • 添加根据可用背包食物尽量维持最大食物增益数量的选项。
    • 添加忽略背包、从魔法厨房获取食物的选项。
    • 添加标准化食物效果的选项。
    • 添加调整增益持续时间的选项。
    • 添加可调节食物评分权重的选项。
  • v0.0.3:添加从堆叠数量中移除已食用物品的开关。
  • v0.0.2:更新说明文档。
  • v0.0.1:首次发布。

来源: Nexus Mods 模组页面;版本文件页面:v1.0.3 文件。

来源与文件

文件说明

Automate your food

来源列出的依赖与关系

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

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

下载模块

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