Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
MoreBattery
Customizable battery multiplier for flashlights & lanterns. Includes a hotfixed OnGUI overlay showing vanilla and modified battery times. Original by Dausen_Bugg.
| Date uploaded | a month ago |
| Version | 1.2.1 |
| Download link | Gaming_and_Pringles-MoreBattery-1.2.1.zip |
| Downloads | 23 |
| Dependency string | Gaming_and_Pringles-MoreBattery-1.2.1 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
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
FlashlightItemclass (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 a battery-operated item. 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.
- Fully Customizable Multiplier: Default is
1.5(+50% battery capacity), but can be adjusted to any multiplier (e.g.2.0for double,3.0for triple, or1.0to 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 a battery-operated item, displaying its original and current battery durations. |
CHANGELOG
Changelog
[1.2.6]
- Implemented Host-Client Config Sync (CSync): Added official CSync integration to synchronize configuration values from the host to connected clients.
- Vanilla Anti-Cheat Reversion: If joining an unmodded vanilla server, the battery multiplier automatically reverts to
1.0f(vanilla duration) to prevent client-side advantages and satisfy Thunderstore moderation policies. - HUD Repositioning & Contrast: Moved HUD to the top-left to avoid overlaps (e.g.
HotbarPlus) and added a high-contrast dark background. - Advanced Active Slot Scanning: Full reliability scanning including
ItemOnlySlot(Utility slot) andpocketedFlashlightfor Lethal Company v80/v81 support.
[1.2.3]
- Standard release with standalone Debug HUD and persistent state overlays.
- Original concept by Dausen_Bugg.