EngineerUnlimitedTurrets
Engineer turret limit scales as max(3, charges). Lightweight BepInEx 5 Mono mod — 9 charges = 9 turrets, works for both stationary and mobile turrets.
模組介紹 作者原文
EngineerUnlimitedTurrets
Engineer turret limit scales as max(3, charges) for Risk of Rain 2 — e.g., 9 charges = 9 turrets.
Simple BepInEx 5 Mono mod using On.RoR2.CharacterMaster.GetDeployableSameSlotLimit. No config — limit reads GenericSkill.maxStock for Special (includes Lysate Cell EquipmentMagazineVoid and other bonusStockFromBody). Floor 3 so you never get fewer than vanilla+1. Covers both TR12 Gauss (stationary) and TR58 Carbonizer (mobile) — they share DeployableSlot.EngiTurret.
Install
r2modman
- Install dependencies: BepInExPack and HookGenPatcher (auto-installed)
- Drop EngineerUnlimitedTurrets.dll into BepInEx/plugins/EngineerUnlimitedTurrets/ or import the.zip via Import local mod
Manual
Copy plugins/EngineerUnlimitedTurrets/EngineerUnlimitedTurrets.dll to Risk of Rain 2/BepInEx/plugins/EngineerUnlimitedTurrets.
How It Works
Hooks RoR2.CharacterMaster.GetDeployableSameSlotLimit(DeployableSlot):
slot == DeployableSlot.EngiTurret? Mathf.Max(3, body.skillLocator.special.maxStock): orig(self, slot)
Falls back to 1 + EquipmentMagazineVoid when body unavailable. No prefab edits, no save impact. Multiplayer: host and clients need the mod (networkMode: both).
Verification
- Launch via r2modman Start modded
- Engineer with 1 charge: place 4th turret — oldest should not die (floor 3)
- Engineer with 9 charges (e.g., 8 Lysate Cells): place 9, 10th should kill oldest; 9 should coexist
- Check BepInEx/LogOutput.log for EngineerUnlimitedTurrets 1.1.0 loaded — EngiTurret limit scales as max(3, charges)
Performance
99 turrets is already heavy (AI tick). If you stress-test 100+, expect FPS drop — that's vanilla AI cost, not this mod.
Development
- Target: netstandard2.1 (RoR2.dll uses 2.1, 2.0 fails CS1705), BepInEx 5.4.2122, HookGenPatcher 1.2.9, Mono (not IL2CPP)
- Build: dotnet build -c Release → bin/Release/netstandard2.1/EngineerUnlimitedTurrets.dll
- Author: tinymario (com.tinymario.EngineerUnlimitedTurrets)
Changelog
See CHANGELOG.md.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: