mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-04-25 19:50:01 +02:00
24
dist/bitburner.d.ts
vendored
24
dist/bitburner.d.ts
vendored
@ -1032,7 +1032,7 @@ export declare interface Gang {
|
|||||||
* Get the name of all possible equipment/upgrades you can purchase for your Gang Members.
|
* Get the name of all possible equipment/upgrades you can purchase for your Gang Members.
|
||||||
* This includes Augmentations.
|
* This includes Augmentations.
|
||||||
*
|
*
|
||||||
* @returns Names of all Equpiment/Augmentations.
|
* @returns Names of all Equipments/Augmentations.
|
||||||
*/
|
*/
|
||||||
getEquipmentNames(): string[];
|
getEquipmentNames(): string[];
|
||||||
|
|
||||||
@ -3313,6 +3313,17 @@ export declare interface NS extends Singularity {
|
|||||||
*/
|
*/
|
||||||
getBitNodeMultipliers(): BitNodeMultipliers;
|
getBitNodeMultipliers(): BitNodeMultipliers;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a list of acquired Source-Files.
|
||||||
|
* @remarks
|
||||||
|
* RAM cost: 5 GB
|
||||||
|
*
|
||||||
|
* Returns an array of source files
|
||||||
|
*
|
||||||
|
* @returns Array containing an object with number and level of the source file.
|
||||||
|
*/
|
||||||
|
getOwnedSourceFiles(): SourceFileLvl[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get information about the player.
|
* Get information about the player.
|
||||||
* @returns Player info
|
* @returns Player info
|
||||||
@ -4080,17 +4091,6 @@ export declare interface Singularity {
|
|||||||
*/
|
*/
|
||||||
getOwnedAugmentations(purchased?: boolean): string[];
|
getOwnedAugmentations(purchased?: boolean): string[];
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a list of acquired Source-Files.
|
|
||||||
* @remarks
|
|
||||||
* RAM cost: 5 GB
|
|
||||||
*
|
|
||||||
* Returns an array of source files
|
|
||||||
*
|
|
||||||
* @returns Array containing an object with number and level of the source file.
|
|
||||||
*/
|
|
||||||
getOwnedSourceFiles(): SourceFileLvl[];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of augmentation available from a faction.
|
* Get a list of augmentation available from a faction.
|
||||||
* @remarks
|
* @remarks
|
||||||
|
BIN
electron/lib/greenworks-linux64.node
Executable file
BIN
electron/lib/greenworks-linux64.node
Executable file
Binary file not shown.
BIN
electron/lib/libsdkencryptedappticket.so
Normal file
BIN
electron/lib/libsdkencryptedappticket.so
Normal file
Binary file not shown.
BIN
electron/lib/libsteam_api.so
Normal file
BIN
electron/lib/libsteam_api.so
Normal file
Binary file not shown.
@ -9,7 +9,6 @@ if (greenworks.init()) {
|
|||||||
|
|
||||||
const debug = false;
|
const debug = false;
|
||||||
|
|
||||||
Menu.setApplicationMenu(false);
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
show: false,
|
show: false,
|
||||||
@ -41,6 +40,24 @@ function createWindow() {
|
|||||||
shell.openExternal(url);
|
shell.openExternal(url);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Create the Application's main menu
|
||||||
|
Menu.setApplicationMenu(
|
||||||
|
Menu.buildFromTemplate([
|
||||||
|
{
|
||||||
|
label: "Edit",
|
||||||
|
submenu: [
|
||||||
|
{ label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:" },
|
||||||
|
{ label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:" },
|
||||||
|
{ type: "separator" },
|
||||||
|
{ label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:" },
|
||||||
|
{ label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:" },
|
||||||
|
{ label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:" },
|
||||||
|
{ label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
|
||||||
// This is backward but the game fills in an array called `document.achievements` and we retrieve it from
|
// This is backward but the game fills in an array called `document.achievements` and we retrieve it from
|
||||||
// here. Hey if it works it works.
|
// here. Hey if it works it works.
|
||||||
const achievements = greenworks.getAchievementNames();
|
const achievements = greenworks.getAchievementNames();
|
||||||
|
@ -6088,7 +6088,7 @@
|
|||||||
{
|
{
|
||||||
"kind": "MethodSignature",
|
"kind": "MethodSignature",
|
||||||
"canonicalReference": "bitburner!Gang#getEquipmentNames:member(1)",
|
"canonicalReference": "bitburner!Gang#getEquipmentNames:member(1)",
|
||||||
"docComment": "/**\n * List equipment names.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Get the name of all possible equipment/upgrades you can purchase for your Gang Members. This includes Augmentations.\n *\n * @returns Names of all Equpiment/Augmentations.\n */\n",
|
"docComment": "/**\n * List equipment names.\n *\n * @remarks\n *\n * RAM cost: 1 GB\n *\n * Get the name of all possible equipment/upgrades you can purchase for your Gang Members. This includes Augmentations.\n *\n * @returns Names of all Equipments/Augmentations.\n */\n",
|
||||||
"excerptTokens": [
|
"excerptTokens": [
|
||||||
{
|
{
|
||||||
"kind": "Content",
|
"kind": "Content",
|
||||||
@ -12675,6 +12675,39 @@
|
|||||||
"parameters": [],
|
"parameters": [],
|
||||||
"name": "getHostname"
|
"name": "getHostname"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"kind": "MethodSignature",
|
||||||
|
"canonicalReference": "bitburner!NS#getOwnedSourceFiles:member(1)",
|
||||||
|
"docComment": "/**\n * Get a list of acquired Source-Files.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * Returns an array of source files\n *\n * @returns Array containing an object with number and level of the source file.\n */\n",
|
||||||
|
"excerptTokens": [
|
||||||
|
{
|
||||||
|
"kind": "Content",
|
||||||
|
"text": "getOwnedSourceFiles(): "
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "Reference",
|
||||||
|
"text": "SourceFileLvl",
|
||||||
|
"canonicalReference": "bitburner!SourceFileLvl:interface"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "Content",
|
||||||
|
"text": "[]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "Content",
|
||||||
|
"text": ";"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"isOptional": false,
|
||||||
|
"returnTypeTokenRange": {
|
||||||
|
"startIndex": 1,
|
||||||
|
"endIndex": 3
|
||||||
|
},
|
||||||
|
"releaseTag": "Public",
|
||||||
|
"overloadIndex": 1,
|
||||||
|
"parameters": [],
|
||||||
|
"name": "getOwnedSourceFiles"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"kind": "MethodSignature",
|
"kind": "MethodSignature",
|
||||||
"canonicalReference": "bitburner!NS#getPlayer:member(1)",
|
"canonicalReference": "bitburner!NS#getPlayer:member(1)",
|
||||||
@ -20953,39 +20986,6 @@
|
|||||||
],
|
],
|
||||||
"name": "getOwnedAugmentations"
|
"name": "getOwnedAugmentations"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"kind": "MethodSignature",
|
|
||||||
"canonicalReference": "bitburner!Singularity#getOwnedSourceFiles:member(1)",
|
|
||||||
"docComment": "/**\n * Get a list of acquired Source-Files.\n *\n * @remarks\n *\n * RAM cost: 5 GB\n *\n * Singularity - Level 3\n *\n * Returns an array of source files\n *\n * @returns Array containing an object with number and level of the source file.\n */\n",
|
|
||||||
"excerptTokens": [
|
|
||||||
{
|
|
||||||
"kind": "Content",
|
|
||||||
"text": "getOwnedSourceFiles(): "
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind": "Reference",
|
|
||||||
"text": "SourceFileLvl",
|
|
||||||
"canonicalReference": "bitburner!SourceFileLvl:interface"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind": "Content",
|
|
||||||
"text": "[]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind": "Content",
|
|
||||||
"text": ";"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"isOptional": false,
|
|
||||||
"returnTypeTokenRange": {
|
|
||||||
"startIndex": 1,
|
|
||||||
"endIndex": 3
|
|
||||||
},
|
|
||||||
"releaseTag": "Public",
|
|
||||||
"overloadIndex": 1,
|
|
||||||
"parameters": [],
|
|
||||||
"name": "getOwnedSourceFiles"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"kind": "MethodSignature",
|
"kind": "MethodSignature",
|
||||||
"canonicalReference": "bitburner!Singularity#getStats:member(1)",
|
"canonicalReference": "bitburner!Singularity#getStats:member(1)",
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -15,7 +15,7 @@ getEquipmentNames(): string[];
|
|||||||
|
|
||||||
string\[\]
|
string\[\]
|
||||||
|
|
||||||
Names of all Equpiment/Augmentations.
|
Names of all Equipments/Augmentations.
|
||||||
|
|
||||||
## Remarks
|
## Remarks
|
||||||
|
|
||||||
|
6
markdown/bitburner.singularity.getownedsourcefiles.md → markdown/bitburner.ns.getownedsourcefiles.md
6
markdown/bitburner.singularity.getownedsourcefiles.md → markdown/bitburner.ns.getownedsourcefiles.md
@ -1,8 +1,8 @@
|
|||||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||||
|
|
||||||
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [getOwnedSourceFiles](./bitburner.singularity.getownedsourcefiles.md)
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getOwnedSourceFiles](./bitburner.ns.getownedsourcefiles.md)
|
||||||
|
|
||||||
## Singularity.getOwnedSourceFiles() method
|
## NS.getOwnedSourceFiles() method
|
||||||
|
|
||||||
Get a list of acquired Source-Files.
|
Get a list of acquired Source-Files.
|
||||||
|
|
||||||
@ -21,7 +21,5 @@ Array containing an object with number and level of the source file.
|
|||||||
|
|
||||||
RAM cost: 5 GB
|
RAM cost: 5 GB
|
||||||
|
|
||||||
Singularity - Level 3
|
|
||||||
|
|
||||||
Returns an array of source files
|
Returns an array of source files
|
||||||
|
|
@ -53,6 +53,7 @@ export interface NS extends Singularity
|
|||||||
| [getHacknetMultipliers()](./bitburner.ns.gethacknetmultipliers.md) | Get hacknet related multipliers. |
|
| [getHacknetMultipliers()](./bitburner.ns.gethacknetmultipliers.md) | Get hacknet related multipliers. |
|
||||||
| [getHackTime(host)](./bitburner.ns.gethacktime.md) | Get the execution time of a hack() call. |
|
| [getHackTime(host)](./bitburner.ns.gethacktime.md) | Get the execution time of a hack() call. |
|
||||||
| [getHostname()](./bitburner.ns.gethostname.md) | Returns a string with the hostname of the server that the script is running on. |
|
| [getHostname()](./bitburner.ns.gethostname.md) | Returns a string with the hostname of the server that the script is running on. |
|
||||||
|
| [getOwnedSourceFiles()](./bitburner.ns.getownedsourcefiles.md) | Get a list of acquired Source-Files. |
|
||||||
| [getPlayer()](./bitburner.ns.getplayer.md) | Get information about the player. |
|
| [getPlayer()](./bitburner.ns.getplayer.md) | Get information about the player. |
|
||||||
| [getPortHandle(port)](./bitburner.ns.getporthandle.md) | Get all data on a port. |
|
| [getPortHandle(port)](./bitburner.ns.getporthandle.md) | Get all data on a port. |
|
||||||
| [getPurchasedServerCost(ram)](./bitburner.ns.getpurchasedservercost.md) | Get cost of purchasing a server. |
|
| [getPurchasedServerCost(ram)](./bitburner.ns.getpurchasedservercost.md) | Get cost of purchasing a server. |
|
||||||
|
@ -43,7 +43,6 @@ This API requires Source-File 4 level 1 / 2 / 3 to use.
|
|||||||
| [getFactionFavorGain(faction)](./bitburner.singularity.getfactionfavorgain.md) | Get faction favor gain. |
|
| [getFactionFavorGain(faction)](./bitburner.singularity.getfactionfavorgain.md) | Get faction favor gain. |
|
||||||
| [getFactionRep(faction)](./bitburner.singularity.getfactionrep.md) | Get faction reputation. |
|
| [getFactionRep(faction)](./bitburner.singularity.getfactionrep.md) | Get faction reputation. |
|
||||||
| [getOwnedAugmentations(purchased)](./bitburner.singularity.getownedaugmentations.md) | Get a list of owned augmentation. |
|
| [getOwnedAugmentations(purchased)](./bitburner.singularity.getownedaugmentations.md) | Get a list of owned augmentation. |
|
||||||
| [getOwnedSourceFiles()](./bitburner.singularity.getownedsourcefiles.md) | Get a list of acquired Source-Files. |
|
|
||||||
| [getStats()](./bitburner.singularity.getstats.md) | |
|
| [getStats()](./bitburner.singularity.getstats.md) | |
|
||||||
| [getUpgradeHomeCoresCost()](./bitburner.singularity.getupgradehomecorescost.md) | Get the price of upgrading home cores. |
|
| [getUpgradeHomeCoresCost()](./bitburner.singularity.getupgradehomecorescost.md) | Get the price of upgrading home cores. |
|
||||||
| [getUpgradeHomeRamCost()](./bitburner.singularity.getupgradehomeramcost.md) | Get the price of upgrading home RAM. |
|
| [getUpgradeHomeRamCost()](./bitburner.singularity.getupgradehomeramcost.md) | Get the price of upgrading home RAM. |
|
||||||
|
@ -167,9 +167,9 @@ export function NetscriptGang(player: IPlayer, workerScript: WorkerScript, helpe
|
|||||||
if (gang === null) throw new Error("Should not be called without Gang");
|
if (gang === null) throw new Error("Should not be called without Gang");
|
||||||
const recruited = gang.recruitMember(name);
|
const recruited = gang.recruitMember(name);
|
||||||
if (recruited) {
|
if (recruited) {
|
||||||
workerScript.log("recruitMember", () => `Successfully recruited Gang Member '${name}'`);
|
workerScript.log("gang.recruitMember", () => `Successfully recruited Gang Member '${name}'`);
|
||||||
} else {
|
} else {
|
||||||
workerScript.log("recruitMember", () => `Failed to recruit Gang Member '${name}'`);
|
workerScript.log("gang.recruitMember", () => `Failed to recruit Gang Member '${name}'`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return recruited;
|
return recruited;
|
||||||
@ -190,12 +190,12 @@ export function NetscriptGang(player: IPlayer, workerScript: WorkerScript, helpe
|
|||||||
const success = member.assignToTask(taskName);
|
const success = member.assignToTask(taskName);
|
||||||
if (success) {
|
if (success) {
|
||||||
workerScript.log(
|
workerScript.log(
|
||||||
"setMemberTask",
|
"gang.setMemberTask",
|
||||||
() => `Successfully assigned Gang Member '${memberName}' to '${taskName}' task`,
|
() => `Successfully assigned Gang Member '${memberName}' to '${taskName}' task`,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
workerScript.log(
|
workerScript.log(
|
||||||
"setMemberTask",
|
"gang.setMemberTask",
|
||||||
() => `Failed to assign Gang Member '${memberName}' to '${taskName}' task. '${memberName}' is now Unassigned`,
|
() => `Failed to assign Gang Member '${memberName}' to '${taskName}' task. '${memberName}' is now Unassigned`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -251,10 +251,10 @@ export function NetscriptGang(player: IPlayer, workerScript: WorkerScript, helpe
|
|||||||
if (!equipment) return false;
|
if (!equipment) return false;
|
||||||
const res = member.buyUpgrade(equipment, player, gang);
|
const res = member.buyUpgrade(equipment, player, gang);
|
||||||
if (res) {
|
if (res) {
|
||||||
workerScript.log("purchaseEquipment", () => `Purchased '${equipName}' for Gang member '${memberName}'`);
|
workerScript.log("gang.purchaseEquipment", () => `Purchased '${equipName}' for Gang member '${memberName}'`);
|
||||||
} else {
|
} else {
|
||||||
workerScript.log(
|
workerScript.log(
|
||||||
"purchaseEquipment",
|
"gang.purchaseEquipment",
|
||||||
() => `Failed to purchase '${equipName}' for Gang member '${memberName}'`,
|
() => `Failed to purchase '${equipName}' for Gang member '${memberName}'`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -277,10 +277,10 @@ export function NetscriptGang(player: IPlayer, workerScript: WorkerScript, helpe
|
|||||||
if (gang === null) throw new Error("Should not be called without Gang");
|
if (gang === null) throw new Error("Should not be called without Gang");
|
||||||
if (engage) {
|
if (engage) {
|
||||||
gang.territoryWarfareEngaged = true;
|
gang.territoryWarfareEngaged = true;
|
||||||
workerScript.log("setTerritoryWarfare", () => "Engaging in Gang Territory Warfare");
|
workerScript.log("gang.setTerritoryWarfare", () => "Engaging in Gang Territory Warfare");
|
||||||
} else {
|
} else {
|
||||||
gang.territoryWarfareEngaged = false;
|
gang.territoryWarfareEngaged = false;
|
||||||
workerScript.log("setTerritoryWarfare", () => "Disengaging in Gang Territory Warfare");
|
workerScript.log("gang.setTerritoryWarfare", () => "Disengaging in Gang Territory Warfare");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getChanceToWinClash: function (otherGang: any): number {
|
getChanceToWinClash: function (otherGang: any): number {
|
||||||
|
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -3006,7 +3006,7 @@ export interface Gang {
|
|||||||
* Get the name of all possible equipment/upgrades you can purchase for your Gang Members.
|
* Get the name of all possible equipment/upgrades you can purchase for your Gang Members.
|
||||||
* This includes Augmentations.
|
* This includes Augmentations.
|
||||||
*
|
*
|
||||||
* @returns Names of all Equpiment/Augmentations.
|
* @returns Names of all Equipments/Augmentations.
|
||||||
*/
|
*/
|
||||||
getEquipmentNames(): string[];
|
getEquipmentNames(): string[];
|
||||||
|
|
||||||
@ -4974,7 +4974,7 @@ export interface NS extends Singularity {
|
|||||||
*
|
*
|
||||||
* @returns Array containing an object with number and level of the source file.
|
* @returns Array containing an object with number and level of the source file.
|
||||||
*/
|
*/
|
||||||
getOwnedSourceFiles(): SourceFileLvl[];
|
getOwnedSourceFiles(): SourceFileLvl[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get information about the player.
|
* Get information about the player.
|
||||||
|
Reference in New Issue
Block a user