mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
lint and remove unused var
This commit is contained in:
parent
f7805c4a51
commit
2d73f546b0
@ -128,8 +128,6 @@ export interface IPlayer extends IPerson {
|
|||||||
timeNeededToCompleteWork: number;
|
timeNeededToCompleteWork: number;
|
||||||
focus: boolean;
|
focus: boolean;
|
||||||
workType: WorkType;
|
workType: WorkType;
|
||||||
workCostMult: number;
|
|
||||||
workExpMult: number;
|
|
||||||
timeWorked: number;
|
timeWorked: number;
|
||||||
workMoneyGained: number;
|
workMoneyGained: number;
|
||||||
workMoneyGainRate: number;
|
workMoneyGainRate: number;
|
||||||
|
@ -141,8 +141,6 @@ export class PlayerObject implements IPlayer {
|
|||||||
timeNeededToCompleteWork: number;
|
timeNeededToCompleteWork: number;
|
||||||
focus: boolean;
|
focus: boolean;
|
||||||
workType: WorkType;
|
workType: WorkType;
|
||||||
workCostMult: number;
|
|
||||||
workExpMult: number;
|
|
||||||
timeWorked: number;
|
timeWorked: number;
|
||||||
workMoneyGained: number;
|
workMoneyGained: number;
|
||||||
workMoneyGainRate: number;
|
workMoneyGainRate: number;
|
||||||
@ -365,8 +363,6 @@ export class PlayerObject implements IPlayer {
|
|||||||
this.isWorking = false;
|
this.isWorking = false;
|
||||||
this.focus = false;
|
this.focus = false;
|
||||||
this.workType = WorkType.None;
|
this.workType = WorkType.None;
|
||||||
this.workCostMult = 1;
|
|
||||||
this.workExpMult = 1;
|
|
||||||
|
|
||||||
this.workHackExpGainRate = 0;
|
this.workHackExpGainRate = 0;
|
||||||
this.workStrExpGainRate = 0;
|
this.workStrExpGainRate = 0;
|
||||||
|
@ -500,7 +500,7 @@ export function queryStatFromString(this: IPlayer, str: string): number {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/******* Working functions *******/
|
/******* Working functions *******/
|
||||||
export function resetWorkStatus(this: IPlayer, generalType?: WorkType, group?: string, workType?: string): void {
|
export function resetWorkStatus(this: IPlayer, generalType?: WorkType, group?: string): void {
|
||||||
if (this.workType !== WorkType.Faction && generalType === this.workType && group === this.companyName) return;
|
if (this.workType !== WorkType.Faction && generalType === this.workType && group === this.companyName) return;
|
||||||
if (generalType === this.workType) return;
|
if (generalType === this.workType) return;
|
||||||
if (this.isWorking) this.singularityStopWork();
|
if (this.isWorking) this.singularityStopWork();
|
||||||
|
@ -21,7 +21,7 @@ import { StatsRow } from "./React/StatsRow";
|
|||||||
import { WorkType } from "../utils/WorkType";
|
import { WorkType } from "../utils/WorkType";
|
||||||
import { isCrimeWork } from "../Work/CrimeWork";
|
import { isCrimeWork } from "../Work/CrimeWork";
|
||||||
import { isClassWork } from "../Work/ClassWork";
|
import { isClassWork } from "../Work/ClassWork";
|
||||||
import { newWorkStats, WorkStats } from "../Work/WorkStats";
|
import { WorkStats } from "../Work/WorkStats";
|
||||||
import { isCreateProgramWork } from "../Work/CreateProgramWork";
|
import { isCreateProgramWork } from "../Work/CreateProgramWork";
|
||||||
import { isGraftingWork } from "../Work/GraftingWork";
|
import { isGraftingWork } from "../Work/GraftingWork";
|
||||||
import { isFactionWork } from "../Work/FactionWork";
|
import { isFactionWork } from "../Work/FactionWork";
|
||||||
|
Loading…
Reference in New Issue
Block a user