From 995294a770a7352dda2ef80619fd3e84410749c8 Mon Sep 17 00:00:00 2001 From: Albert Llop Date: Mon, 10 Jun 2024 01:34:53 +0200 Subject: [PATCH] BUGFIX: bladeburner.getActionRepGain: mark level param as optional in signature (#1375) --- markdown/bitburner.bladeburner.getactionrepgain.md | 4 ++-- src/ScriptEditor/NetscriptDefinitions.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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.