From 32bd62931759512a4e0f4176712b746029c79595 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Wed, 27 Jul 2022 00:08:07 -0400 Subject: [PATCH] lint --- src/NetscriptFunctions/Sleeve.ts | 5 ++--- src/ScriptEditor/NetscriptDefinitions.d.ts | 6 ++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/NetscriptFunctions/Sleeve.ts b/src/NetscriptFunctions/Sleeve.ts index bb8109f67..a6b88e580 100644 --- a/src/NetscriptFunctions/Sleeve.ts +++ b/src/NetscriptFunctions/Sleeve.ts @@ -206,10 +206,9 @@ export function NetscriptSleeve(player: IPlayer): InternalAPI { return { tor: false, city: sl.city, - hp: sl.hp.current, + hp: sl.hp, jobs: Object.keys(player.jobs), // technically sleeves have the same jobs as the player. jobTitle: Object.values(player.jobs), - maxHp: sl.hp.max, mult: { agility: sl.mults.agility, @@ -323,7 +322,7 @@ export function NetscriptSleeve(player: IPlayer): InternalAPI { }, getSleeveAugmentationRepReq: (ctx: NetscriptContext) => - (_augName: unknown, _basePrice = false): number => { + (_augName: unknown): number => { checkSleeveAPIAccess(ctx); const augName = ctx.helper.string("augName", _augName); const aug: Augmentation = StaticAugmentations[augName]; diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 04e0b3b5f..65cc2b00d 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -1006,10 +1006,8 @@ export interface SleeveSkills { export interface SleeveInformation { /** Location of the sleeve */ city: string; - /** Current hp of the sleeve */ - hp: number; - /** Max hp of the sleeve */ - maxHp: number; + /** hp of the sleeve */ + hp: HP; /** Jobs available to the sleeve */ jobs: string[]; /** Job titles available to the sleeve */