mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
allbuild commit e9254edf
This commit is contained in:
90
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
90
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -657,27 +657,6 @@ export interface NodeStats {
|
||||
totalProduction: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Short summary of the players skills.
|
||||
* @public
|
||||
*/
|
||||
export interface PlayerSkills {
|
||||
/** Hacking level */
|
||||
hacking: number;
|
||||
/** Strength level */
|
||||
strength: number;
|
||||
/** Defense level */
|
||||
defense: number;
|
||||
/** Dexterity level */
|
||||
dexterity: number;
|
||||
/** Agility level */
|
||||
agility: number;
|
||||
/** Charisma level */
|
||||
charisma: number;
|
||||
/** Intelligence level */
|
||||
intelligence: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
@@ -718,42 +697,6 @@ export interface CharacterMult {
|
||||
workMoney: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export interface CharacterInfo {
|
||||
/** Current BitNode number */
|
||||
bitnode: number;
|
||||
/** Name of city you are currently in */
|
||||
city: string;
|
||||
/** Array of factions you are currently a member of */
|
||||
factions: string[];
|
||||
/** Current health points */
|
||||
hp: number;
|
||||
/** Array of all jobs */
|
||||
jobs: string[];
|
||||
/** Array of job positions for all companies you are employed at. Same order as 'jobs' */
|
||||
jobTitles: string[];
|
||||
/** Maximum health points */
|
||||
maxHp: number;
|
||||
/** Boolean indicating whether or not you have a tor router */
|
||||
tor: boolean;
|
||||
/** Object with many of the player's multipliers from Augmentations/Source Files */
|
||||
mult: CharacterMult;
|
||||
/** total hacking exp */
|
||||
hackingExp: number;
|
||||
/** total strength exp */
|
||||
strengthExp: number;
|
||||
/** total defense exp */
|
||||
defenseExp: number;
|
||||
/** total dexterity exp */
|
||||
dexterityExp: number;
|
||||
/** total agility exp */
|
||||
agilityExp: number;
|
||||
/** total charisma exp */
|
||||
charismaExp: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
@@ -2216,35 +2159,6 @@ export interface Singularity {
|
||||
*/
|
||||
installAugmentations(cbScript?: string): void;
|
||||
|
||||
/**
|
||||
* Returns an object with the Player’s stats.
|
||||
* @deprecated use getPlayer
|
||||
*
|
||||
* @remarks
|
||||
* RAM cost: 0.5 GB * 16/4/1
|
||||
*
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* res = getStats();
|
||||
* print('My charisma level is: ' + res.charisma);
|
||||
* ```
|
||||
* @returns Object with the Player’s stats.
|
||||
*/
|
||||
getStats(): PlayerSkills;
|
||||
|
||||
/**
|
||||
* Returns an object with various information about your character.
|
||||
* @deprecated use getPlayer
|
||||
*
|
||||
* @remarks
|
||||
* RAM cost: 0.5 GB * 16/4/1
|
||||
*
|
||||
*
|
||||
* @returns Object with various information about your character.
|
||||
*/
|
||||
getCharacterInformation(): CharacterInfo;
|
||||
|
||||
/**
|
||||
* Hospitalize the player.
|
||||
* @remarks
|
||||
@@ -6407,7 +6321,7 @@ export interface NS {
|
||||
* RAM cost: 0 GB
|
||||
*
|
||||
* Retrieves data from a URL and downloads it to a file on the specified server.
|
||||
* The data can only be downloaded to a script (.script, .ns, .js) or a text file (.txt).
|
||||
* The data can only be downloaded to a script (.script, .js) or a text file (.txt).
|
||||
* If the file already exists, it will be overwritten by this command.
|
||||
* Note that it will not be possible to download data from many websites because they
|
||||
* do not allow cross-origin resource sharing (CORS).
|
||||
@@ -6540,7 +6454,7 @@ export interface NS {
|
||||
* ]);
|
||||
* tprint(data);
|
||||
*
|
||||
* // example.ns
|
||||
* // example.js
|
||||
* export async function main(ns) {
|
||||
* const data = ns.flags([
|
||||
* ['delay', 0], // a default number means this flag is a number
|
||||
|
||||
Reference in New Issue
Block a user