diff --git a/markdown/bitburner.bladeburner.getactionrepgain.md b/markdown/bitburner.bladeburner.getactionrepgain.md index 1ca00295e..6caabcaeb 100644 --- a/markdown/bitburner.bladeburner.getactionrepgain.md +++ b/markdown/bitburner.bladeburner.getactionrepgain.md @@ -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:** diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index bcfb207a2..f816e66d5 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -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.