DynamicBarrierDecay
Makes barrier decay exponentialy instead of linearly. Configurable.
Screenshots 1 screenshots
About this mod Author’s original text
Description
This mod changes how barrier works so that it decays exponentially; it decays faster with more barrier. Max health no longer has any affect on barrier decay rate. Includes configuration for for the barrier decay rate, and an option to remove the barrier cap.
The goal of this mod is to make barrier less of an "all or nothing" type of thing, as well as making it scale better with max health. For example, In vanilla, if you have aegis + bungus on a turret, picking up a couple of shield gens will increase your barrier decay and can mean the difference between max barrier and zero barrier.
Math
Vanilla
Barrier decays at a rate equal to 3.33% of your combined max health and shields per second.
The formula for barrier decay per second is (maxHealth + maxShields) / 30
Dynamic
Barrier decays exponentially with a half-life of 7.5 seconds, or at a rate of approximately 9.24% of your current barrier per second, with a minimum rate of 3 per second. These values are configurable.
The formula for barrier decay per second is max(minimumDecayRate, (barrier * ln(2) / halfLife) )
Graph
The following graphs show how barrier will decay over time with default settings, assuming you have max barrier at 240.
- Orange - Vanilla
- Cyan - Dynamic
Contact
- Issues can be posted on my github
- Discord: @zombieseatflesh7
- Art by SearchGoopsy
Changelog
2.0.2
- Updated for SOTS DLC
2.0.0
- Changed the formula and made barrier decay significantly faster
- Added configuration for barrier half-life and minimum decay speed
- Added a config to remove the barrier cap
- New mod icon
1.0.0
- Release
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: