This commit is contained in:
Olivier Gagnon 2022-07-27 00:08:07 -04:00
parent 326d9fd7ef
commit 32bd629317
2 changed files with 4 additions and 7 deletions

@ -206,10 +206,9 @@ export function NetscriptSleeve(player: IPlayer): InternalAPI<ISleeve> {
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<ISleeve> {
},
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];

@ -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 */