From ff75097149ed7813bfbfe1a86b1f5c144f17297e Mon Sep 17 00:00:00 2001 From: borisflagell Date: Mon, 23 May 2022 19:50:32 +0200 Subject: [PATCH] API: Fix #3661 Add missing memory property to Sleeve API fixes #3661 Add the missing memory stat to NS.SleeveSkills Interface. Update ns.Sleeve.GetSleeveStats accordingly. (fixing commit issue) --- 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..e6a1e3dfd 100644 --- a/src/NetscriptFunctions/Sleeve.ts +++ b/src/NetscriptFunctions/Sleeve.ts @@ -38,6 +38,7 @@ export function NetscriptSleeve(player: IPlayer): InternalAPI { return { shock: 100 - sl.shock, sync: sl.sync, + memory: sl.memory, hacking: sl.hacking, strength: sl.strength, defense: sl.defense, diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index f18cfdba3..5e6bc458a 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -1050,6 +1050,8 @@ export interface SleeveSkills { shock: number; /** Current sync of the sleeve [0-100] */ sync: number; + /** Current memory of the sleeve [1-100] */ + memory: number; /** Current hacking skill of the sleeve */ hacking: number; /** Current strength of the sleeve */