This OXP rebalances energy between shields and energy banks.
If forward/aft shield level drops below 25% of max capacity under fire, energy from banks transfers directly onto shield in question until energy banks drains under 64 units, preventing damage of equipment and cargo.
If energy level drops below critical 32 unit level, energy transfer switches back from remaining shields to energy bank.
Energy Rebalance looks as extremely simplified and fully automated "lite version of Shield Cycler, but it is not equipment upgrade. It is redefined game mechanics.

Dependencies:

Energy Rebalance OXP requires Breakable Shield Generators & Breakable Energy Unit (author Capt Murphy).

Conflicts:

Energy Rebalance OXP is incompatible with Shield Equaliser+Capacitors (author CommonSense OTB) and with Shield Cycler / Shield Cycler Next (author Lone_Wolf).
It is also incompatible with Ship Configuration (author phkb).

Installation:

To install package unzip archive, and then move the folder "Energy Rebalance.oxp" to the AddOns directory of your Oolite installation. Then start the game up.

Credits:

Shield Cycler / Shield Cycler Next (Lone_Wolf) - clear formulation of problem with energy damage and working way for fixing it.
IronHide (Thargoid) - some code tricks (not included onto final code, but very helpful in testing of some ideas).

--------------------------------------------------------------

Version history:

18-07-2026 0.4.0 cooperate with Kiche Emergency Shields .
24-06-2026 Adopted by Lone_Wolf after receiving written permission from Stranger.
28.02.2019 - Version 0.3.0	Added energy transfer from shields to depleted energy banks.
				Converted to OXZ.
10.04.2018 - Version 0.2.1	manifest.plist added
17.11.2017 - Version 0.2	Breakable Energy Unit dependence added
04.11.2017 - Version 0.1	Initial release.
