One-Key Loot

One-Key Loot

Loot All with one-click.一键收集战利品

1,382
Downloads
10
Endorsements
1.3.0
Version
776 KB
File Size
Author:DreamNya
Category:Miscellaneous
Released:Oct 27, 2025
Last Updated:Oct 31, 2025
open_in_newView on Nexus Mods

descriptionDescription

如果你是Steam玩家,可以直接在Steam创意工坊订阅本Mod
If you play on Steam, you can easily subscribe to this mod directly from the Steam Workshop.
[quote]https://steamcommunity.com/sharedfiles/filedetails/?id=3589344509[/quote]
GitHub:
[quote]https://github.com/DreamNya/Duckov_OneKeyLoot[/quote]
--------

安装方式
(无需安装前置Mod,所有依赖项均已集成)
1. 下载本Mod
2. 解压到 [color=#ff0000]Escape from Duckov\Duckov_Data\mods [/color] 路径(如果没有mods文件夹则手动新建一个)
3. 确保以下文件存在 [b][color=#00ff00]Escape from Duckov\Duckov_Data\mods\OneKeyLoot\OneKeyLoot.dll
[/color][/b]

功能


  • 显示 【全部拾取】 按钮
  • 新增 【一键收集战利品(按品质)】 按钮组
  • 新增 【一键收集战利品(按价值)】 按钮组
  • 新增 【一键收集战利品(按价重比)】 按钮组
  • 支持 中/英文本地化热切换
  • 支持 自定义动态配置热切换
    [list]
  • 显示/隐藏【全部拾取 / 一键收集战利品】按钮或按钮组
  • 自定义一键收集按钮数量
  • 自定义一键收集按钮颜色
  • 自定义一键收集范围
  • 支持 ModConfig(可选)
    https://steamcommunity.com/sharedfiles/filedetails/?id=3590674339 目前 ModConfig 的配置文本不支持中英热切换;修改后需重启游戏生效。[/list]
    [quote]本 Mod 的 UI 部分由 ChatGPT-5 协助编写。[/quote]

    按钮逻辑
    【全部拾取】


    • 一键拾取箱内所有物品,直到背包格满为止。

    【一键收集战利品(按品质)】

    • 有条件拾取,直到背包格满为止:
      [list]
    • 物品已被标记为爱心(收藏)
    • 物品品质 ≥ 按钮显示的最低品质阈值
    [/list]
    【一键收集战利品(按价值)】

    • 有条件拾取,直到背包格满为止:
      [list]
    • 物品已被标记为爱心(收藏)
    • 物品在商店的总出售价 ≥ 按钮显示的最低价格阈值
    [/list]
    【一键收集战利品(按价重比)】

    • 有条件拾取,直到背包格满为止:
      [list]
    • 物品已被标记为爱心(收藏)
    • 物品在商店的总出售价/物品总重量 ≥ 按钮显示的最低价重比阈值
    [/list]
    使用方法

    1. 在创意工坊页面订阅本 Mod。
    2. 进入游戏 → 打开 Mod 菜单 → 勾选 One-Key Loot
    3. 如果安装了 ModConfig:请同时勾选 ModConfig,并将其排序在 One-Key Loot 上方。
    4. 重启一次游戏,确保配置正常载入。
    5. 进入游戏 → 读取存档 → 进入地图。
    6. 打开任意战利品箱,可看到默认的 3 组按钮,按需点击使用。

    自定义配置
    更新后第一次使用,请先按【使用方法】完整运行一遍以正确生成/加载配置。
    使用【ModConfig】(推荐,支持热切换)


    • 进入游戏并读取存档后,打开 ESC → 设置 → Mod Settings,。

    未安装【ModConfig】(不支持热切换)

    • 关闭游戏,在 Windows 中打开以下文件并编辑保存:
      [code]Escape from Duckov\Duckov_Data\StreamingAssets\OneKeyLootConfig.txt
      [/code]

    【品质范围】

    • 默认: 2,3,4,5
    • 代表 4 个按钮:分别为 品质≥2品质≥3品质≥4品质≥5
    • 每个数值表示最低品质;游戏内品质范围为 1 ~ 9

    【价值范围】

    • 默认: 100,500,1000
    • 代表 3 个按钮:分别为 价值≥100价值≥500价值≥1000
    • 每个数值为商店出售价阈值(通常为物品正常价值的一半)。

    【价重比范围】

    • 默认: 500,2500,5000
    • 代表 3 个按钮:分别为 价重比≥100价重比≥500价重比≥5000
    • 每个数值为价重比阈值(重量包含物品插槽内所有子物品)。

    【按钮组颜色】

    • 默认: #4CAF4F,#42A5F5,#BA68C6,#BF7F33
    • 代表 4 个按钮:颜色分别为 #4CAF4F#42A5F5#BA68C6#BF7F33
    • 每个颜色字符串必须为16进制且以#开头,支持不透明度(#4CAF4F等价于#4CAF4FFF)

    配置格式规则

    • 【品质范围】与【价值范围】与【价重比范围】与【按钮组颜色】各自支持自定义 1~4 个数值
    • 使用半角逗号 , 分隔
    • 若自定义格式错误,将回退使用默认值

    兼容性


    • 本 Mod 的品质过滤基于原版官方定义的隐藏品质,与“自定义战利品颜色”类 Mod 不冲突。
    • 受编译器限制,目前仅能编译为 .NET Framework 4.8 的 DLL。若系统未安装 .NET Framework 4.8,可能导致 Mod 无法正常运行(存疑)。
    • 本 Mod 的 UI 锚定于游戏中原本隐藏的“一键拾取”按钮;若其他 Mod 修改了该处逻辑,可能产生冲突。

    TODO


    • 根据箱内战利品动态显示对应的品质等级按钮
    • UI 进一步优化
    • 更多可自定义选项

    --------

    Installation
    (No prerequisite mods required; all dependencies are already included)
    1. Download this mod
    2. Extract it to the [color=#ff0000]Escape from Duckov\Duckov_Data\mods [/color] path (If there isn’t a mods folder, simply create one manually.)
    3. Make sure the following file exists [b][color=#00ff00]Escape from Duckov\Duckov_Data\mods\OneKeyLoot\OneKeyLoot.dll
    [/color][/b]

    Features


    • Show the [Collect All] button
    • Add a [One-key Loot (by Quality)] button group
    • Add a [One-key Loot (by Value)] button group
    • Add a [One-key Loot (by Value per unit Weight)] button group
    • Support hot switching between Chinese/English localization
    • Support hot switching of custom dynamic configuration:
      [list]
    • Show/Hide the [Collect All / One-key Loot] button or button groups
    • Customize the number of One-key Loot buttons
    • Customize the color of One-key Loot buttons
    • Customize the One-key Loot range
  • Support ModConfig(Optional)
    https://steamcommunity.com/sharedfiles/filedetails/?id=3590674339 Currently, ModConfig's configuration text does not support hot switching between Chinese and English; after modifying it, you must restart the game for changes to take effect.[/list]

    [quote]The UI portion of this Mod was assisted by ChatGPT-5.[/quote]

    Button Logic
    [Collect All]


    • Pick up all items in the container with one click, until inventory slots are full.

    [One-key Loot (by Quality)]

    • Conditional pickup, until inventory slots are full:
      [list]
    • Item is marked with a Heart (Favorite)
    • Item Quality is ≥ the minimum Quality threshold shown on the button
    [/list]
    [One-key Loot (by Value)]

    • Conditional pickup, until inventory slots are full:
      [list]
    • Item is marked with a Heart (Favorite)
    • Item's store selling price is ≥ the minimum price threshold shown on the button
    [/list]
    [One-key Loot (by Value per unit Weight)]

    • Conditional pickup, until inventory slots are full:
      [list]
    • Item is marked with a Heart (Favorite)
    • Item's total store selling price / Item's total weight is ≥ the minimum $/kg threshold shown on the button
    [/list]

    How to Use


    1. Subscribe to this Mod on the Steam Workshop page.
    2. Enter the game → open the Mod menu → check One-key Loot.
    3. If you have ModConfig installed: also check ModConfig and place it above One-key Loot in the load order.
    4. Restart the game once to ensure the configuration loads correctly.
    5. Enter the game → load a save → enter the map.
    6. Open any loot container; you will see the default 3 button groups. Click as needed.

    Custom Configuration
    After updating, on first use, please follow the steps in [How to Use] end-to-end to correctly generate/load the configuration.

    Using [ModConfig] (Recommended, supports hot switching)


    • After entering the game and loading your save, open ESC → Settings → Mod Settings.

    Without [ModConfig] (hot switching not supported)

    • Close the game, then open and edit the following file in Windows, and save it:
      [code]Escape from Duckov\Duckov_Data\StreamingAssets\OneKeyLootConfig.txt[/code]

    [Quality Range]

    • Default: 2,3,4,5
    • Represents 4 buttons: Quality ≥ 2, Quality ≥ 3, Quality ≥ 4, Quality ≥ 5
    • Each value is a minimum Quality; the in-game Quality range is 1 ~ 9.

    [Value Range]

    • Default: 100,500,1000
    • Represents 3 buttons: Value ≥ 100, Value ≥ 500, Value ≥ 1000
    • Each value is a store selling price threshold (usually half of an item's normal value).

    [Value/Weight Range]

    • Default: 500,2500,5000
    • Represents 3 buttons: $/kg ≥ 500, $/kg ≥ 2500, $/kg ≥ 5000
    • Each value is a Value per unit Weight threshold (the Weight includes all sub-items in the item slots).

    [Button Group Color]

    • Default: #4CAF4F,#42A5F5,#BA68C6,#BF7F33
    • Represents 4 buttons: the colors are #4CAF4F, #42A5F5, #BA68C6, #BF7F33
    • Each color string must be in hexadecimal and begin with #. Opacity is supported (#4CAF4F is equivalent to #4CAF4FFF).

    Configuration Format Rules

    • [Quality Range], [Value Range], [Value/Weight Range] and [Button Group Color] each support 1~4 custom values
    • Separate values with a half-width comma ,
    • If the custom format is invalid, defaults will be used instead

    Compatibility


    • This Mod's Quality filtering is based on the vanilla game's officially defined hidden Quality and does not conflict with “custom loot color” type Mods.
    • Litmited by the Complier, currently compiled only as a .NET Framework 4.8 DLL. If .NET Framework 4.8 is not installed on your system, the Mod may fail to run (uncertain).
    • This Mod's UI is anchored to the game's originally hidden “one-click pickup” button; if another Mod modifies that logic, conflicts may occur.

    TODO


    • Dynamically display corresponding Quality-level buttons based on the container's loot
    • Further UI optimization
    • More customizable options

  • One-Key Loot - Mod for Escape From Duckov | DuckovHub