BLADEBURNER: Add APIs to get rank gain and rank loss of an action (#2572)

This commit is contained in:
catloversg
2026-03-14 09:34:13 +07:00
committed by GitHub
parent bc3e8ff3d5
commit 50442472b5
10 changed files with 289 additions and 12 deletions

View File

@@ -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