mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-12 08:17:34 +01:00
DOCUMENTATION: Clarify returned value of ns.bladeburner.getActionCountRemaining (#1873)
This commit is contained in:
parent
43bca702c0
commit
93c07ac107
@ -34,5 +34,9 @@ RAM cost: 4 GB
|
||||
|
||||
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.
|
||||
|
||||
|
12
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
12
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -3441,10 +3441,14 @@ export interface Bladeburner {
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* @param type - Type of action.
|
||||
* @param name - Name of action. Must be an exact match.
|
||||
|
Loading…
Reference in New Issue
Block a user