MoreBattery
Customizable battery multiplier for flashlights & lanterns. Features standalone Debug HUD with persistent state overlays supporting Reserved slots. Original by Dausen_Bugg.
模組介紹 作者原文
MoreBattery
A BepInEx mod for Lethal Company that increases the battery life of flashlights, lanterns, and other light sources.
This is a modern re-implementation of the classic MoreBattery mod, expanded to dynamically support all modded light sources (such as the Elite Flashlight or custom lanterns) with a fully customizable configuration file and a built-in HUD overlay showing original and current battery durations.
Credits & Attribs
- Original Mod & Concept: Dausen_Bugg - Original creator who designed the mod to balance the game's light mechanics when paired with atmospheric/darkness mods.
- Update & Re-Implementation: Updated and expanded by Antigravity (AI Coding Assistant) to add generic component detection, custom item matching, and a BepInEx config system to seamlessly replace the old mod for future modpacks.
Features
- Generic Flashlight Detection: Automatically applies to all items inheriting from the standard FlashlightItem class (covers vanilla flashlights, pro-flashlights, laser pointers, and most modded flashlights like the Elite Flashlight).
- Custom Item Support: A configuration list allows you to apply the multiplier to custom light-source items (like modded lanterns or custom battery-powered items) that do not inherit from the standard class.
- Debug HUD Overlay: Shows a basic, high-contrast text overlay on the left side of your screen when holding or actively using any battery-operated item. Fully compatible with slot/hotbar mods (like ReservedFlashlightSlot!). It displays:
- The item's name.
- Its vanilla (original) max battery duration.
- Its current modified max battery duration.
- Its current remaining charge percentage and estimated seconds remaining.
- Persistent Status: Even when you aren't using a battery item, the overlay will stay visible and display "Status: Active & Loaded" to give you instant confirmation that the mod is working before you get a flashlight!
- Fully Customizable Multiplier: Default is 1.5 (+50% battery capacity), but can be adjusted to any multiplier (e.g. 2.0 for double, 3.0 for triple, or 1.0 to keep it vanilla).
- Robust Integration: Uses Unity lifecycle hooks (Start) and a single-application cache, which prevents compounding multiplications if an item is spawned multiple times.
Configuration
Upon launching the game once with this mod installed, a configuration file will be generated at BepInEx/config/MoreBattery.cfg.
You can customize the following fields:
| Section | Setting | Default Value | Description |
|:--- |:--- |:--- |:--- |
| General | BatteryMultiplier | 1.5 | The multiplier applied to the battery life (duration in seconds) of flashlights and light sources. 1.5 represents a 50% increase. |
| General | ApplyToAllFlashlights | true | If true, automatically applies the battery multiplier to all items inheriting from FlashlightItem. |
| General | CustomItemNames | Lantern | A comma-separated list of additional item names (case-insensitive) to apply the battery multiplier to (e.g., Lantern, Green Flashlight). |
| General | ExcludedItemNames | (empty) | A comma-separated list of item names to exclude from receiving the battery multiplier. |
| General | ShowDebugUI | false | If true, shows a basic text overlay on the screen when holding or using a battery-operated item, displaying its original and current battery durations. |
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: