mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
API: Reduce RAM cost of inGang and inBladeburner APIs (#2582)
This commit is contained in:
@@ -19,5 +19,5 @@ whether player is a member of Bladeburner division.
|
|||||||
|
|
||||||
## Remarks
|
## Remarks
|
||||||
|
|
||||||
RAM cost: 1 GB
|
RAM cost: 0 GB
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
## Gang.inGang() method
|
## Gang.inGang() method
|
||||||
|
|
||||||
Check if you're in a gang.
|
Check if you're in a gang. Does not require API access.
|
||||||
|
|
||||||
**Signature:**
|
**Signature:**
|
||||||
|
|
||||||
@@ -19,5 +19,5 @@ True if you're in a gang, false otherwise.
|
|||||||
|
|
||||||
## Remarks
|
## Remarks
|
||||||
|
|
||||||
RAM cost: 1GB
|
RAM cost: 0GB
|
||||||
|
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ Get stats of a task.
|
|||||||
|
|
||||||
</td><td>
|
</td><td>
|
||||||
|
|
||||||
Check if you're in a gang.
|
Check if you're in a gang. Does not require API access.
|
||||||
|
|
||||||
|
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ const format = {
|
|||||||
// Gang API
|
// Gang API
|
||||||
const gang = {
|
const gang = {
|
||||||
createGang: RamCostConstants.GangApiBase / 4,
|
createGang: RamCostConstants.GangApiBase / 4,
|
||||||
inGang: RamCostConstants.GangApiBase / 4,
|
inGang: 0,
|
||||||
getMemberNames: RamCostConstants.GangApiBase / 4,
|
getMemberNames: RamCostConstants.GangApiBase / 4,
|
||||||
renameMember: 0,
|
renameMember: 0,
|
||||||
getGangInformation: RamCostConstants.GangApiBase / 2,
|
getGangInformation: RamCostConstants.GangApiBase / 2,
|
||||||
@@ -334,7 +334,7 @@ const go = {
|
|||||||
|
|
||||||
// Bladeburner API
|
// Bladeburner API
|
||||||
const bladeburner = {
|
const bladeburner = {
|
||||||
inBladeburner: RamCostConstants.BladeburnerApiBase / 4,
|
inBladeburner: 0,
|
||||||
getContractNames: 0,
|
getContractNames: 0,
|
||||||
getOperationNames: 0,
|
getOperationNames: 0,
|
||||||
getBlackOpNames: 0,
|
getBlackOpNames: 0,
|
||||||
|
|||||||
10
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
10
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -3988,9 +3988,10 @@ export interface Bladeburner {
|
|||||||
*/
|
*/
|
||||||
nextUpdate(): Promise<number>;
|
nextUpdate(): Promise<number>;
|
||||||
|
|
||||||
/** Returns whether player is a member of Bladeburner division. Does not require API access.
|
/**
|
||||||
|
* Returns whether player is a member of Bladeburner division. Does not require API access.
|
||||||
* @remarks
|
* @remarks
|
||||||
* RAM cost: 1 GB
|
* RAM cost: 0 GB
|
||||||
*
|
*
|
||||||
* @returns whether player is a member of Bladeburner division. */
|
* @returns whether player is a member of Bladeburner division. */
|
||||||
inBladeburner(): boolean;
|
inBladeburner(): boolean;
|
||||||
@@ -4833,9 +4834,10 @@ export interface Gang {
|
|||||||
createGang(faction: FactionName): boolean;
|
createGang(faction: FactionName): boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if you're in a gang.
|
* Check if you're in a gang. Does not require API access.
|
||||||
* @remarks
|
* @remarks
|
||||||
* RAM cost: 1GB
|
* RAM cost: 0GB
|
||||||
|
*
|
||||||
* @returns True if you're in a gang, false otherwise.
|
* @returns True if you're in a gang, false otherwise.
|
||||||
*/
|
*/
|
||||||
inGang(): boolean;
|
inGang(): boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user