mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
BLADEBURNER: Add APIs to get rank gain and rank loss of an action (#2572)
This commit is contained in:
39
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
39
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -3564,17 +3564,46 @@ export interface Bladeburner {
|
||||
* @remarks
|
||||
* RAM cost: 4 GB
|
||||
*
|
||||
* Returns the average Bladeburner reputation gain for successfully
|
||||
* completing the specified action.
|
||||
* Note that this value is an ‘average’ and the real reputation gain may vary slightly from this value.
|
||||
* 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.
|
||||
*
|
||||
* @param type - Type of action.
|
||||
* @param name - Name of action. Must be an exact match.
|
||||
* @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.
|
||||
* @param level - Optional. Action level at which to calculate the gain. Defaults to the action's current level if not specified.
|
||||
* @returns Average reputation gain for successfully completing the specified action.
|
||||
*/
|
||||
getActionRepGain(type: BladeburnerActionType, name: BladeburnerActionName, level?: number): number;
|
||||
|
||||
/**
|
||||
* Get the rank gain of an action.
|
||||
* @remarks
|
||||
* RAM cost: 4 GB
|
||||
*
|
||||
* Returns the average rank gain for successfully completing the specified action.
|
||||
* Note that this value is an "average" and the actual rank gain may vary slightly from this value.
|
||||
*
|
||||
* @param type - Type of action.
|
||||
* @param name - Name of action. Must be an exact match.
|
||||
* @param level - Optional. Action level at which to calculate the gain. Defaults to the action's current level if not specified.
|
||||
* @returns Average rank gain for successfully completing the specified action.
|
||||
*/
|
||||
getActionRankGain(type: BladeburnerActionType, name: BladeburnerActionName, level?: number): number;
|
||||
|
||||
/**
|
||||
* Get the rank loss of an action.
|
||||
* @remarks
|
||||
* RAM cost: 4 GB
|
||||
*
|
||||
* Returns the average rank loss for failing to complete the specified action.
|
||||
* Note that this value is an "average" and the actual rank loss may vary slightly from this value.
|
||||
*
|
||||
* @param type - Type of action.
|
||||
* @param name - Name of action. Must be an exact match.
|
||||
* @param level - Optional. Action level at which to calculate the loss. Defaults to the action's current level if not specified.
|
||||
* @returns Average rank loss for failing to complete the specified action.
|
||||
*/
|
||||
getActionRankLoss(type: BladeburnerActionType, name: BladeburnerActionName, level?: number): number;
|
||||
|
||||
/**
|
||||
* Get action count remaining.
|
||||
* @remarks
|
||||
|
||||
Reference in New Issue
Block a user