bitburner-src/markdown/bitburner.hackingformulas.hackchance.md
David Walker dc9b1050bf Result of npm run doc
Includes my change and a bunch of prior changes
2023-02-17 00:14:20 -08:00

811 B

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 Server info, typically from getServer
player Person Player info, typically from getPlayer

Returns:

number

The calculated hack chance.