bitburner-src/src/Terminal
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
..
commands TERMINAL: Add --ram-override flag to the run command (#1055) 2024-02-15 05:51:37 -08:00
ui TERMINAL: Fix inconsistent / janky scrolling behavior (#1063) 2024-01-31 19:32:42 -05:00
getTabCompletionPossibilities.ts TERMINAL: Add --ram-override flag to the run command (#1055) 2024-02-15 05:51:37 -08:00
HelpText.ts TERMINAL: Add --ram-override flag to the run command (#1055) 2024-02-15 05:51:37 -08:00
OutputTypes.tsx Remove more unused interfaces 2022-09-27 15:35:41 -04:00
Parser.ts TERMINAL: Fix original alias syntax (#545) 2023-05-29 06:54:51 -04:00
Terminal.ts MISC: refactor weaken effect calculation (#1076) 2024-02-16 17:18:16 -08:00
TerminalEvents.ts remove ns2 example doing DOM manip 2021-09-20 00:14:30 -04:00