Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (16 loc) · 811 Bytes

bitburner.hackingformulas.hackchance.md

File metadata and controls

27 lines (16 loc) · 811 Bytes

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.