Changelog
v1.1.0 (2026-06-01)
Added
- Drone support: Now explicitly supports ItemDrone (drones with time-based battery drain)
- Enhanced battery protection: Added patches for drone state machines to prevent NoBattery state
- Patches for
ItemDrone.StateSearching, ItemDrone.StateBeamDeployed, and ItemDrone.StateAttached
Technical
- Uses Harmony Traverse to access private
itemBattery field in ItemDrone
- Postfix patches on drone states ensure battery never depletes during operation
- Maintains backward compatibility with all existing battery-powered items
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
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.