mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Merge pull request #1816 from cvr-119/netscript
Add missing properties of Server interface
This commit is contained in:
commit
ceb008c9fe
39
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
39
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -372,6 +372,45 @@ export interface Server {
|
|||||||
|
|
||||||
/** Flag indicating whether the SSH Port is open */
|
/** Flag indicating whether the SSH Port is open */
|
||||||
sshPortOpen: boolean;
|
sshPortOpen: boolean;
|
||||||
|
|
||||||
|
/** Flag indicating whether this is a purchased server */
|
||||||
|
purchasedByPlayer: boolean;
|
||||||
|
|
||||||
|
/** Flag indicating whether this server has a backdoor installed by a player */
|
||||||
|
backdoorInstalled: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initial server security level
|
||||||
|
* (i.e. security level when the server was created)
|
||||||
|
*/
|
||||||
|
baseDifficulty: number;
|
||||||
|
|
||||||
|
/** Server Security Level */
|
||||||
|
hackDifficulty: number;
|
||||||
|
|
||||||
|
/** Minimum server security level that this server can be weakened to */
|
||||||
|
minDifficulty: number;
|
||||||
|
|
||||||
|
/** How much money currently resides on the server and can be hacked */
|
||||||
|
moneyAvailable: number;
|
||||||
|
|
||||||
|
/** Maximum amount of money that this server can hold */
|
||||||
|
moneyMax: number;
|
||||||
|
|
||||||
|
/** Number of open ports required in order to gain admin/root access */
|
||||||
|
numOpenPortsRequired: number;
|
||||||
|
|
||||||
|
/** How many ports are currently opened on the server */
|
||||||
|
openPortCount: number;
|
||||||
|
|
||||||
|
/** Hacking level required to hack this server */
|
||||||
|
requiredHackingSkill: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parameter that affects how effectively this server's money can
|
||||||
|
* be increased using the grow() Netscript function
|
||||||
|
*/
|
||||||
|
serverGrowth: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user