Files
bitburner-src/markdown/bitburner.bladeburner.getactionrepgain.md
T

95 lines
1.4 KiB
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Bladeburner](./bitburner.bladeburner.md) &gt; [getActionRepGain](./bitburner.bladeburner.getactionrepgain.md)
## Bladeburner.getActionRepGain() method
Get the reputation gain of an action.
**Signature:**
```typescript
getActionRepGain(type: BladeburnerActionType, name: BladeburnerActionName, level?: number): number;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
type
</td><td>
[BladeburnerActionType](./bitburner.bladeburneractiontype.md)
</td><td>
Type of action.
</td></tr>
<tr><td>
name
</td><td>
[BladeburnerActionName](./bitburner.bladeburneractionname.md)
</td><td>
Name of action. Must be an exact match.
</td></tr>
<tr><td>
level
</td><td>
number
</td><td>
_(Optional)_ Optional. Action level at which to calculate the gain. Defaults to the action's current level if not specified.
</td></tr>
</tbody></table>
**Returns:**
number
Average reputation gain for successfully completing the specified action.
## Remarks
RAM cost: 4 GB
Returns the average reputation gain for successfully completing the specified action. Note that this value is an "average" and the actual reputation gain may vary slightly from this value.