mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +01:00
lint
This commit is contained in:
parent
326d9fd7ef
commit
32bd629317
@ -206,10 +206,9 @@ export function NetscriptSleeve(player: IPlayer): InternalAPI<ISleeve> {
|
|||||||
return {
|
return {
|
||||||
tor: false,
|
tor: false,
|
||||||
city: sl.city,
|
city: sl.city,
|
||||||
hp: sl.hp.current,
|
hp: sl.hp,
|
||||||
jobs: Object.keys(player.jobs), // technically sleeves have the same jobs as the player.
|
jobs: Object.keys(player.jobs), // technically sleeves have the same jobs as the player.
|
||||||
jobTitle: Object.values(player.jobs),
|
jobTitle: Object.values(player.jobs),
|
||||||
maxHp: sl.hp.max,
|
|
||||||
|
|
||||||
mult: {
|
mult: {
|
||||||
agility: sl.mults.agility,
|
agility: sl.mults.agility,
|
||||||
@ -323,7 +322,7 @@ export function NetscriptSleeve(player: IPlayer): InternalAPI<ISleeve> {
|
|||||||
},
|
},
|
||||||
getSleeveAugmentationRepReq:
|
getSleeveAugmentationRepReq:
|
||||||
(ctx: NetscriptContext) =>
|
(ctx: NetscriptContext) =>
|
||||||
(_augName: unknown, _basePrice = false): number => {
|
(_augName: unknown): number => {
|
||||||
checkSleeveAPIAccess(ctx);
|
checkSleeveAPIAccess(ctx);
|
||||||
const augName = ctx.helper.string("augName", _augName);
|
const augName = ctx.helper.string("augName", _augName);
|
||||||
const aug: Augmentation = StaticAugmentations[augName];
|
const aug: Augmentation = StaticAugmentations[augName];
|
||||||
|
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
6
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -1006,10 +1006,8 @@ export interface SleeveSkills {
|
|||||||
export interface SleeveInformation {
|
export interface SleeveInformation {
|
||||||
/** Location of the sleeve */
|
/** Location of the sleeve */
|
||||||
city: string;
|
city: string;
|
||||||
/** Current hp of the sleeve */
|
/** hp of the sleeve */
|
||||||
hp: number;
|
hp: HP;
|
||||||
/** Max hp of the sleeve */
|
|
||||||
maxHp: number;
|
|
||||||
/** Jobs available to the sleeve */
|
/** Jobs available to the sleeve */
|
||||||
jobs: string[];
|
jobs: string[];
|
||||||
/** Job titles available to the sleeve */
|
/** Job titles available to the sleeve */
|
||||||
|
Loading…
Reference in New Issue
Block a user