Meone101201-InfiniteItemBatteryMod icon

InfiniteItemBatteryMod

All battery-powered items never run out. Toggle on/off via in-game UI or hotkey (default F6). Host-side — only host needs this mod.

CHANGELOG

Changelog

v1.0.0 (2026-05-29)

Added

  • Initial release
  • Enabled toggle: enable or disable via in-game REPOConfig UI (ON/OFF selector)
  • Hotkey: configurable key (default F6) to toggle mod on/off in real-time
  • HUD overlay: displays current state on screen for 2.5 seconds after toggling, with fade-out
    • Green ♾ Infinite Battery: ON
    • Red ⬜ Infinite Battery: OFF
  • RemoveFullBar block: prevents all battery bar removal on any item
  • AutoDrain block: prevents continuous battery drain in Update loop
  • Drain block: prevents Drain() calls from reducing battery

Technical

  • Targets: ItemBattery.RemoveFullBar (Prefix), ItemBattery.Update (Postfix), ItemBattery.Drain (Prefix)
  • Hotkey uses string config entry parsed to UnityEngine.KeyCode at runtime
  • HUD rendered via OnGUI with shadow layer and alpha fade
  • Affects all items using ItemBattery component
  • Host-side: battery state syncs to all clients via Photon RPC