NETSCRIPTSLEEVE: Add cyclesWorked to ns.sleeve.getTask return (#409)

This commit is contained in:
Snarling
2023-03-07 05:30:15 -05:00
committed by GitHub
parent 4ebfdcc4a8
commit e74dfe9b79
14 changed files with 31 additions and 26 deletions

View File

@@ -878,6 +878,7 @@ type SleeveBladeburnerTask = {
actionType: "General" | "Contracts";
actionName: string;
cyclesWorked: number;
cyclesNeeded: number;
};
/** @public */
@@ -891,7 +892,12 @@ type SleeveClassTask = {
type SleeveCompanyTask = { type: "COMPANY"; companyName: string };
/** @public */
type SleeveCrimeTask = { type: "CRIME"; crimeType: CrimeType | `${CrimeType}`; cyclesWorked: number };
type SleeveCrimeTask = {
type: "CRIME";
crimeType: CrimeType | `${CrimeType}`;
cyclesWorked: number;
cyclesNeeded: number;
};
/** @public */
type SleeveFactionTask = {
@@ -901,7 +907,7 @@ type SleeveFactionTask = {
};
/** @public */
type SleeveInfiltrateTask = { type: "INFILTRATE"; cyclesWorked: number };
type SleeveInfiltrateTask = { type: "INFILTRATE"; cyclesWorked: number; cyclesNeeded: number };
/** @public */
type SleeveRecoveryTask = { type: "RECOVERY" };