BLADEBURNER: FIX #3508 Add GetActionCurrentTime() to Bitburner API

Add GetActionCurrentTime() to Bitburner API.
Slightly tweak BItburner.resetAction() to also reset time counters.
This commit is contained in:
borisflagell
2022-05-22 06:40:08 +02:00
parent b2659318c8
commit 8e0af049d9
4 changed files with 29 additions and 1 deletions

View File

@@ -2884,7 +2884,7 @@ export interface Bladeburner {
* @remarks
* RAM cost: 4 GB
*
* Returns the number of seconds it takes to complete the specified action
* Returns the number of milliseconds it takes to complete the specified action
*
* @param type - Type of action.
* @param name - Name of action. Must be an exact match.
@@ -2892,6 +2892,17 @@ export interface Bladeburner {
*/
getActionTime(type: string, name: string): number;
/**
* Get the time elapsed on current action.
* @remarks
* RAM cost: 4 GB
*
* Returns the number of milliseconds it takes to complete the specified action
*
* @returns Number of milliseconds already spent on the current action.
*/
getActionCurrentTime(): number;
/**
* Get estimate success chance of an action.
* @remarks