lint and remove unused var

This commit is contained in:
Olivier Gagnon 2022-07-12 01:59:23 -04:00
parent f7805c4a51
commit 2d73f546b0
4 changed files with 2 additions and 8 deletions

@ -128,8 +128,6 @@ export interface IPlayer extends IPerson {
timeNeededToCompleteWork: number;
focus: boolean;
workType: WorkType;
workCostMult: number;
workExpMult: number;
timeWorked: number;
workMoneyGained: number;
workMoneyGainRate: number;

@ -141,8 +141,6 @@ export class PlayerObject implements IPlayer {
timeNeededToCompleteWork: number;
focus: boolean;
workType: WorkType;
workCostMult: number;
workExpMult: number;
timeWorked: number;
workMoneyGained: number;
workMoneyGainRate: number;
@ -365,8 +363,6 @@ export class PlayerObject implements IPlayer {
this.isWorking = false;
this.focus = false;
this.workType = WorkType.None;
this.workCostMult = 1;
this.workExpMult = 1;
this.workHackExpGainRate = 0;
this.workStrExpGainRate = 0;

@ -500,7 +500,7 @@ export function queryStatFromString(this: IPlayer, str: string): number {
}
/******* 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 (generalType === this.workType) return;
if (this.isWorking) this.singularityStopWork();

@ -21,7 +21,7 @@ import { StatsRow } from "./React/StatsRow";
import { WorkType } from "../utils/WorkType";
import { isCrimeWork } from "../Work/CrimeWork";
import { isClassWork } from "../Work/ClassWork";
import { newWorkStats, WorkStats } from "../Work/WorkStats";
import { WorkStats } from "../Work/WorkStats";
import { isCreateProgramWork } from "../Work/CreateProgramWork";
import { isGraftingWork } from "../Work/GraftingWork";
import { isFactionWork } from "../Work/FactionWork";