HeavyBugfix
Fixes the Heavy upgrade fire-rate roll range flipping between different brackets depending on equip/stack context.
模組介紹 作者原文
HeavyBugfix
Fixes a vanilla Mycopunk bug where the Heavy upgrade's fire-rate roll range
changes depending on equip/stack context, confusing players comparing copies.
The bug
Heavy's fire-interval property uses OverrideThenAdd. When building the tooltip
stat list, the game converts that to either Override or Add based on how
many Heavies are already equipped (GetAppliedCount), then runs it through
StatData.CreateInverse against the weapon's fire interval.
On a weapon with fireInterval = 0.3 and Heavy's range 0.38–0.45, that yields:
| Context | Displayed range |
|------------------------------------|-----------------------|
| No Heavy equipped yet / first copy | [-33.33% - -21.05%] |
| Another Heavy already equipped | [-60% - -55.88%] |
The rolled value is still seed-based; only the bracket text was lying.
The fix
This mod patches UpgradeProperty_FireInterval.GetStatData so tooltips always:
- Use first-copy (Override) display semantics for OverrideThenAdd
- Use the gear prefab baseline fire interval (not live modified stats)
Combat application (Apply) is unchanged — stacking still works as designed.
Dependencies
- Mycopunk
- BepInEx 5.4.2403+ (Mycopunk pack)
Install
r2modman (recommended): install normally.
Manual: place HeavyBugfix.dll in BepInEx/plugins.
Build
dotnet build --configuration Release
Authors
- Sparroh
License
MIT — see LICENSE.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: