It is entirely possible to hack more than the BN multiplier, which means this function is reporting the effects of the multiplier incorrectly. By moving the BN multiplier before to before the caps are applied, the functionality is corrected.
(ie, hack % * BN multiplier, THEN cap to 1; not cap to 1, then BM multiply the 1)
TESTED: I'm currently running in BN 5 ( * BitNodeMultipliers.ScriptHackMoney = 0.15), and sent a 4b thread hack against several fully grown servers (Avail Money = 100% of Max Money). Each went down to 0% (not 85% as the current implementation would suggest) after the hack hit
* Hash upgrades and Bladeburner skills can now be clicked to copy to clipboard
* Aug purchase confirmation popup displays money in 0.000a format
* Character now displays hacknet server info properly
* Character,Info now displays hacknet server info correctly.
* Formulas (#825)
Formulas API v0.1
* Make all money the same color, same for reputation, format all numbers consistently.
* rename a lot of the formulas function to no longer contain calculate
* added hacking related formulas
* removed unused variable
* v0.51.0