From 051393fac913099bdeae658a4c7e56c2ca004c9f Mon Sep 17 00:00:00 2001 From: borisflagell Date: Mon, 23 May 2022 19:20:33 +0200 Subject: [PATCH] API: FIX#2884 Add the missing className property to Sleeve'sAPI fixes #2884. --- src/NetscriptFunctions/Sleeve.ts | 1 + src/ScriptEditor/NetscriptDefinitions.d.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/NetscriptFunctions/Sleeve.ts b/src/NetscriptFunctions/Sleeve.ts index cca654cac..bd3c604bd 100644 --- a/src/NetscriptFunctions/Sleeve.ts +++ b/src/NetscriptFunctions/Sleeve.ts @@ -190,6 +190,7 @@ export function NetscriptSleeve(player: IPlayer): InternalAPI { location: sl.currentTaskLocation, gymStatType: sl.gymStatType, factionWorkType: FactionWorkType[sl.factionWorkType], + className: sl.className, }; }, getInformation: diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index f18cfdba3..93c1bbf0f 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -1110,6 +1110,8 @@ export interface SleeveTask { gymStatType: string; /** Faction work type being performed, if any */ factionWorkType: string; + /** Class being taken at university, if any */ + className: string; } /**