BUGFIX: bladeburner.getActionRepGain: mark level param as optional in signature (#1375)

This commit is contained in:
Albert Llop 2024-06-10 01:34:53 +02:00 committed by GitHub
parent a0fc9cc713
commit 995294a770
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

@ -9,7 +9,7 @@ Get the reputation gain of an action.
**Signature:**
```typescript
getActionRepGain(type: string, name: string, level: number): number;
getActionRepGain(type: string, name: string, level?: number): number;
```
## Parameters
@ -18,7 +18,7 @@ getActionRepGain(type: string, name: string, level: number): number;
| --- | --- | --- |
| type | string | Type of action. |
| name | string | Name of action. Must be an exact match. |
| level | number | Optional number. Action level at which to calculate the gain. Will be the action's current level if not given. |
| level | number | _(Optional)_ Optional number. Action level at which to calculate the gain. Will be the action's current level if not given. |
**Returns:**

@ -3132,7 +3132,7 @@ export interface Bladeburner {
* @param level - Optional number. Action level at which to calculate the gain. Will be the action's current level if not given.
* @returns Average Bladeburner reputation gain for successfully completing the specified action.
*/
getActionRepGain(type: string, name: string, level: number): number;
getActionRepGain(type: string, name: string, level?: number): number;
/**
* Get action count remaining.