bitburner.hackingformulas.hackchance.md
September 26, 2025 ยท View on GitHub
Home > bitburner > HackingFormulas > hackChance
HackingFormulas.hackChance() method
Calculate hack chance. (Ex: 0.25 would indicate a 25% chance of success.)
Signature:
hackChance(server: Server, player: Person): number;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
server |
Server info, typically from getServer | |
|
player |
Player info, typically from getPlayer |
Returns:
number
The calculated hack chance.