CoreProtectionRework
Nerfs piercing and explosive damage that bypasses enemy shell armor to hit cores. Configurable structural armor falloff.
模組介紹 作者原文
Core Protection Rework
A BepInEx mod for Mycopunk that reduces how hard piercing and explosive damage can skip enemy shell armor and dump
damage straight into cores.
Features
- Structural armor checks — uses the live enemy component tree (EnemyShell under a core), not fragile GameObject
name matching.
- Piercing falloff — IgnoreImmunity can still hit cores, but damage scales down for each living shell still
attached.
- Explosive falloff — explosive, AOE, and mega-explosive core hits are scaled while shells remain.
- Vanilla bonus replacement — the free full-armor explosive core poke and the vanilla x2 explosive core bonus are
replaced with configurable values (defaults: heavily reduced / no bonus).
- Config file — tune penalties, floors, and bonuses without rebuilding. Edits to the cfg on disk hot-reload
in-game (debounced).
What this does not do
- It does not re-implement outer→inner shell gating (vanilla EnemyShell already blocks hits on shells that still have
shell children).
- It does not force-kill cores when shells die (vanilla already handles core death when children are gone).
Getting Started
Dependencies
- Mycopunk
- BepInEx 5.4.2403+ (Mycopunk pack)
- HarmonyLib (via BepInEx)
Building
dotnet build --configuration Release
Output DLL: bin/Release/netstandard2.1/CoreProtection.dll
Installing
r2modman: install the package normally.
Manual: copy CoreProtection.dll to /BepInEx/plugins.
Configuration
After the first launch, edit:
BepInEx/config/sparroh.coreprotection.cfg
| Section | Key | Default | Meaning |
|------------|---------------------|---------|------------------------------------------------------------------------------------------------------------------------------|
| General | EnablePierceNerf | true | Scale IgnoreImmunity (armor-pierce) damage against cores still protected by shells |
| General | EnableExplosiveNerf | true | Scale explosive / AOE / mega-explosive damage against armored cores, and replace vanilla core explosive bonuses |
| Piercing | ShellPenalty | 0.55 | Falloff strength per alive shell (higher = harsher) |
| Piercing | MinMultiplier | 0.25 | Lowest pierce multiplier against armored cores (0–1) |
| Explosives | ShellPenalty | 0.75 | Falloff strength per alive shell (higher = harsher) |
| Explosives | MinMultiplier | 0.15 | Lowest explosive multiplier against armored cores (0–1) |
| Explosives | FullArmorMultiplier | 0.10 | Extra multiplier when no shells have been broken yet (vanilla free core hits). 0 blocks effective damage |
| Explosives | OpenCoreBonus | 1.0 | Replaces vanilla x2 explosive bonus once the core is fully exposed (0 shells left). 1 = no bonus, 2 = vanilla |
| Explosives | ArmoredBonus | 1.0 | Replaces vanilla x2 explosive bonus while some shells remain but the core is already vulnerable. Applied after shell falloff |
Falloff formula:
multiplier = max(MinMultiplier, 1 / (1 + ShellPenalty * aliveShells))
Multiplayer
This mod changes combat math and is marked as sandbox content that all players should run at the same version. The
host’s damage path is what matters for application; keep the mod matched across the lobby.
Changelog
See CHANGELOG.md.
License
MIT — see LICENSE.
Author
Sparroh
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: