mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 09:13:52 +01:00
826 B
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.