Fix Adrenaline (Overshield) Decay
Fixes an issue with the Solo 55 skill progression bonus that was causing rapid Adrenaline decay. It’s very likely that this issue has existed since 2.0 released.
Installation
Extract the zip file into the Cyberpunk 2077 installation folder.
This mod requires redscript.
Compatibility
This fix is compatible with Fix Skill Progression Rewards Not Applying.
This fix might not be compatible with other mods that change Adrenaline behaviour.
Technical Details
The cause of this bug is not actually the skill progression bonus itself, but how it interacts with the component responsible for scaling the overshield decay.
What you need to know:
– Overshield value is stored in a StatPool as a percentage with a minimum value of zero.
– Decay is scaled by a continuous Effector which checks for an overshield value greater than zero to apply its modifier (i.e. player gains overshield).
– Decay scaling is removed by a Listener when the overshield StatPool returns to its minimum value (i.e. player runs out of overshield).
– The skill progression bonus makes it so that the overshield StatPool cannot reach a value of zero but it also does not adjust the minimum value.
With the progression bonus, overshield value never drops below 10%. As a result, the decay scaling modifier is always applied and never removed. This oversight causes decay to “build up” to its maximum value (200 units/second) before the player even has overshield and instantly drain it once they do.
The progression bonus itself is, amusingly, actually working and halves decay (to 100 units/second) but this is still much faster than the base value (15 units/second).
This fix implements the following:
– Checks on file load and upon reaching the required proficiency level to set a CustomLimit value on the StatPool.
– Adds a callback to the overshield Listener that marks the Effector for reset when this CustomLimit is reached.
– Replaces the Effector logic to check for an overshield value greater than the CustomLimit to decide if the modifier needs to be applied.
Overshield decay for characters without the skill progression bonus is not bugged and this fix maintains that behaviour.