bitburner-src/markdown/bitburner.hackingformulas.hackpercent.md
Olivier Gagnon 14317628e6 formulas doc
2021-12-08 19:19:07 -05:00

826 B

Home > bitburner > HackingFormulas > hackPercent

HackingFormulas.hackPercent() method

Calculate hack percent for one thread.

Signature:

hackPercent(server: Server, player: Player): number;

Parameters

Parameter Type Description
server Server Server info from getServer
player Player Player info from getPlayer

Returns:

number

The calculated hack percent.

Remarks

Multiply by thread to get total percent hacked.