mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
986 B
986 B
Home > bitburner > Darknet > getDepth
Darknet.getDepth() method
Gets the current depth of the specified server into the darknet. Servers immediately below Darkweb are depth 0, and each visual row in the UI below that increases the depth of the server.
Returns -1 if the server is offline, not found, or not a darkweb server.
Signature:
getDepth(host?: string): number;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
host |
string |
(Optional) Optional. Hostname/IP of the server to check. Defaults to the running script's server. |
Returns:
number
The current depth of the server into the darknet.
Remarks
RAM cost: 0.1 GB