

InfiniteItemBatteryMod is a R.E.P.O. mod that prevents all battery-powered items from running out of battery. Affects every item using the ItemBattery component — guns, drones, flashlights, and anything else with a battery bar.
F6) to toggle on/off in real-time♾ Infinite Battery: ON or ⬜ Infinite Battery: OFF on screen for 2.5 seconds after togglingItemBattery, including drones with time-based battery drainRemoveFullBar, autoDrain, and DrainItemDrone to prevent NoBattery statePatches multiple methods:
ItemBattery:
RemoveFullBar() — called when a gun fires or an item uses a full bar; blocked entirelyUpdate() — auto-drain logic runs here; battery is forced to 100% if it drops belowDrain() — continuous drain calls are blockedItemDrone:
StateSearching() — ensures battery stays at 100% while searching for targetsStateBeamDeployed() — ensures battery stays at 100% while beam is activeStateAttached() — ensures battery stays at 100% while attached to objects[General]
## Enable or disable infinite battery for all items.
## false = vanilla behavior.
# Default: true
Enabled = true
## Hotkey to toggle the mod on/off in-game.
## Enter a Unity KeyCode name: F5, F6, F7, Insert, Home, Keypad0, etc.
# Default: F6
ToggleKey = F6
Press F6 (or your configured key) while in-game to toggle infinite battery on/off. A message will appear on screen showing the current state.
InfiniteItemBatteryMod.dll in BepInEx/plugins/Patches ItemBattery and ItemDrone only. Does not modify EnemyDirector, LevelGenerator, or any other system.