bitburner-src/src/Script
Caldwell 8c8af38a3a
MISC: refactor weaken effect calculation (#1076)
so far we calculate the effect of weaken in three +1 places
ns.weaken
ns.weakenAnalyze
terminal weaken

and server.weaken where the bn mult is applied

i extracted the logic into a new netscript helper function getWeakenEffect
this gives us one place if we want to change the formula

a side effect i added the server.cpuCores to the terminal weaken to future proof it if the npc server core pr (#963) is merged
2024-02-16 17:18:16 -08:00
..
LoadedModule.ts NETSCRIPT: Compiled modules will be even more shared (#468) 2023-04-07 21:08:39 -04:00
RamCalculationErrorCodes.ts ENUMS: Initial Enum Helper rework + Reorganization (#596) 2023-06-12 00:34:20 -04:00
RamCalculations.ts Fixed ram evaluation to include more edge-cases (#665) 2023-07-11 14:09:23 -04:00
RunningScript.ts BUGFIX: Proper default title for loaded RunningScripts (#557) 2023-06-01 06:42:55 -04:00
Script.ts FIX: show ram calculation error reason to player (#627) 2023-06-19 03:49:32 -04:00
ScriptHelpers.ts MISC: refactor weaken effect calculation (#1076) 2024-02-16 17:18:16 -08:00