API: Reduce RAM cost of inGang and inBladeburner APIs (#2582)

This commit is contained in:
catloversg
2026-03-20 10:15:41 +07:00
committed by GitHub
parent 9de9fbaf27
commit 73b7921ef0
5 changed files with 12 additions and 10 deletions

View File

@@ -19,5 +19,5 @@ whether player is a member of Bladeburner division.
## Remarks ## Remarks
RAM cost: 1 GB RAM cost: 0 GB

View File

@@ -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

View File

@@ -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>

View File

@@ -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,

View File

@@ -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;