mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +01:00
bladeburner.getTeamSize: fix signature and documentation (#1383)
This commit is contained in:
parent
995294a770
commit
ba7d45362f
@ -9,15 +9,15 @@ Get team size.
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
getTeamSize(type: string, name: string): number;
|
||||
getTeamSize(type?: string, name?: string): number;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| type | string | Type of action. |
|
||||
| name | string | Name of action. Must be an exact match. |
|
||||
| type | string | _(Optional)_ Type of action. |
|
||||
| name | string | _(Optional)_ Name of action. Must be an exact match. |
|
||||
|
||||
**Returns:**
|
||||
|
||||
@ -29,7 +29,7 @@ Number of Bladeburner team members that were assigned to the specified action.
|
||||
|
||||
RAM cost: 4 GB
|
||||
|
||||
Returns the number of Bladeburner team members you have assigned to the specified action.
|
||||
Returns the number of available Bladeburner team members. You can also pass the type and name of an action to get the number of Bladeburner team members you have assigned to the specified action.
|
||||
|
||||
Setting a team is only applicable for Operations and BlackOps. This function will return 0 for other action types.
|
||||
|
||||
|
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -3321,7 +3321,9 @@ export interface Bladeburner {
|
||||
* @remarks
|
||||
* RAM cost: 4 GB
|
||||
*
|
||||
* Returns the number of Bladeburner team members you have assigned to the specified action.
|
||||
* Returns the number of available Bladeburner team members.
|
||||
* You can also pass the type and name of an action to get the number of
|
||||
* Bladeburner team members you have assigned to the specified action.
|
||||
*
|
||||
* Setting a team is only applicable for Operations and BlackOps. This function will return 0 for other action types.
|
||||
*
|
||||
@ -3329,7 +3331,7 @@ export interface Bladeburner {
|
||||
* @param name - Name of action. Must be an exact match.
|
||||
* @returns Number of Bladeburner team members that were assigned to the specified action.
|
||||
*/
|
||||
getTeamSize(type: string, name: string): number;
|
||||
getTeamSize(type?: string, name?: string): number;
|
||||
|
||||
/**
|
||||
* Set team size.
|
||||
|
Loading…
Reference in New Issue
Block a user