huoyan1231-WK_UnlimitBackPack icon

WK UnlimitBackPack

Removes the backpack encumbrance soft-limit so you can carry unlimited items with no movement/jump debuff. Disables leaderboard score upload for the run via WK_huoyan1231COMLib.

Last updated 4 hours ago
Total downloads 9
Total rating 0 
Categories Misc AI Generated
Dependency string huoyan1231-WK_UnlimitBackPack-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
huoyan1231-WK_huoyan1231COMLib-1.0.0 icon
huoyan1231-WK_huoyan1231COMLib

Common library for huoyan1231's White Knuckle mods. Provides shared leaderboard management utilities — automatically disables leaderboards when any dependent mod exceeds the vanilla Trinket budget, and restores them after each run.

Preferred version: 1.0.0

README

WK_UnlimitBackPack

White Knuckle 无限背包 Mod — 移除背包负重软限制,并借由 WK_huoyan1231COMLib 关闭本局排行榜成绩上传。


它做了什么

White Knuckle 的背包(Inventory.bagItems)本身没有硬性数量上限,物品永远都能存进去。 真正的“容量限制”是一个负重(encumbrance)软限制

  • Inventory.GetUnencumberanceAmount() 决定“无负担容量”(默认 unencumberedItems = 5,按物品重量计算)。
  • Inventory.GetInventoryWeight() 超过该值时,encumberance 会被压低到 0.1 ~ 1, 进而在 ENT_Player降低移动速度* GetEncumberance())与跳跃高度 —— 这就是“超出上限后的减益效果”。

本 Mod:

  1. 无限背包容量:把 GetUnencumberanceAmount() 的返回值替换为极大值(1E+9), 使物品总重量永远不超标 → encumberance 恒为 1 → 不再有任何移动/跳跃减益, 同时仍可继续往背包里存放任意数量的物品。
  2. 关闭排行榜上传:在 Mod 加载时(以及每局 M_Gamemode.StartFreshGamemode 开始时) 通过 WK_huoyan1231COMLib.LeaderboardManager.DisableForThisRun(...) 设置 CL_Leaderboard.WK_Leaderboard_Core.disableLeaderboards = true, 使 M_Gamemode.Finish 不再上传成绩(COMLib 会在每局结束时自动重置,故每局都会重新申请)。

与“pouch(挎包/小袋)”无关:pouch 是另一套独立的硬性容量限制(Pouch.maxCapacity), 本 Mod 不修改 pouch 逻辑。


依赖

  • BepInEx 5.x(通过 Gale / R2MM 或手动安装)
  • WK_huoyan1231COMLib —— 排行榜管理公共库(硬依赖,Mod 通过它关闭排行榜)

构建

需要 .NET SDK(>= 6.0):

dotnet build WK_UnlimitBackPack.csproj -c Release

产物:bin/Release/net471/WK_UnlimitBackPack.dll


安装

  1. 确保已安装 BepInEx 5.xWK_huoyan1231COMLib
  2. WK_UnlimitBackPack.dll 复制到:
    <游戏根目录>/BepInEx/plugins/
    
  3. 启动游戏即可。

配置

首次运行后会在 BepInEx/config/ 生成配置文件 huoyan1231.whiteknuckle.unlimitbackpack.cfg

配置项 默认值 说明
EnableUnlimitedBackpack true 设为 false 则保留原版负重限制
DisableLeaderboardOnLoad true 设为 false 则不再关闭排行榜上传

License

GPL-3.0