DOCUMENTATION: Clarify returned value of ns.bladeburner.getActionCountRemaining (#1873)

This commit is contained in:
catloversg 2025-01-05 07:33:45 +07:00 committed by GitHub
parent 43bca702c0
commit 93c07ac107
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 5 deletions

@ -34,5 +34,9 @@ RAM cost: 4 GB
Returns the remaining count of the specified action. Returns the remaining count of the specified action.
Note that this is meant to be used for Contracts and Operations. This function will return Infinity for actions such as Training and Field Analysis. This function will return 1 for BlackOps not yet completed regardless of whether the player has the required rank to attempt the mission or not. Note:
- This function is meant to be used for Contracts and Operations. It returns Infinity for General actions (Training, Field Analysis, etc.). It returns 1 for BlackOps not yet completed, regardless of whether the player has the required rank to attempt the mission.
- With Contracts and Operations, the returned value is a floating-point number. The UI shows the rounded-down value.

@ -3441,10 +3441,14 @@ export interface Bladeburner {
* *
* Returns the remaining count of the specified action. * Returns the remaining count of the specified action.
* *
* Note that this is meant to be used for Contracts and Operations. * Note:
* This function will return Infinity for actions such as Training and Field Analysis. *
* This function will return 1 for BlackOps not yet completed regardless of whether * - This function is meant to be used for Contracts and Operations. It returns Infinity for General actions
* the player has the required rank to attempt the mission or not. * (Training, Field Analysis, etc.). It returns 1 for BlackOps not yet completed, regardless of whether the player has
* the required rank to attempt the mission.
*
* - With Contracts and Operations, the returned value is a floating-point number. The UI shows the rounded-down
* value.
* *
* @param type - Type of action. * @param type - Type of action.
* @param name - Name of action. Must be an exact match. * @param name - Name of action. Must be an exact match.