Merge pull request #2771 from zeddrak/patch-3

Documentation edit in response to Issue #2678
This commit is contained in:
hydroflame 2022-01-26 00:40:28 -05:00 committed by GitHub
commit bbef8452b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3633,6 +3633,7 @@ interface SkillsFormulas {
interface HackingFormulas { interface HackingFormulas {
/** /**
* Calculate hack chance. * Calculate hack chance.
* (Ex: 0.25 would indicate a 25% chance of success.)
* @param server - Server info from {@link NS.getServer | getServer} * @param server - Server info from {@link NS.getServer | getServer}
* @param player - Player info from {@link NS.getPlayer | getPlayer} * @param player - Player info from {@link NS.getPlayer | getPlayer}
* @returns The calculated hack chance. * @returns The calculated hack chance.
@ -3649,6 +3650,7 @@ interface HackingFormulas {
hackExp(server: Server, player: Player): number; hackExp(server: Server, player: Player): number;
/** /**
* Calculate hack percent for one thread. * Calculate hack percent for one thread.
* (Ex: 0.25 would steal 25% of the server's current value.)
* @remarks * @remarks
* Multiply by thread to get total percent hacked. * Multiply by thread to get total percent hacked.
* @param server - Server info from {@link NS.getServer | getServer} * @param server - Server info from {@link NS.getServer | getServer}
@ -3657,7 +3659,8 @@ interface HackingFormulas {
*/ */
hackPercent(server: Server, player: Player): number; hackPercent(server: Server, player: Player): number;
/** /**
* Calculate the percent a server would grow. * Calculate the percent a server would grow to.
* (Ex: 3.0 would would grow the server to 300% of its current value.)
* @param server - Server info from {@link NS.getServer | getServer} * @param server - Server info from {@link NS.getServer | getServer}
* @param threads - Amount of thread. * @param threads - Amount of thread.
* @param player - Player info from {@link NS.getPlayer | getPlayer} * @param player - Player info from {@link NS.getPlayer | getPlayer}