From 561c5a7ffc24160bd400c7156345f46f4aa493c6 Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 10 Mar 2024 23:18:42 +0000 Subject: [PATCH] Remove unused injection + lint --- project/src/controllers/RepeatableQuestController.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/project/src/controllers/RepeatableQuestController.ts b/project/src/controllers/RepeatableQuestController.ts index 6b9a7eac..7a60a38f 100644 --- a/project/src/controllers/RepeatableQuestController.ts +++ b/project/src/controllers/RepeatableQuestController.ts @@ -3,9 +3,9 @@ import { inject, injectable } from "tsyringe"; import { RepeatableQuestGenerator } from "@spt-aki/generators/RepeatableQuestGenerator"; import { ProfileHelper } from "@spt-aki/helpers/ProfileHelper"; import { QuestHelper } from "@spt-aki/helpers/QuestHelper"; -import { RagfairServerHelper } from "@spt-aki/helpers/RagfairServerHelper"; import { RepeatableQuestHelper } from "@spt-aki/helpers/RepeatableQuestHelper"; import { IEmptyRequestData } from "@spt-aki/models/eft/common/IEmptyRequestData"; +import { ILocationBase } from "@spt-aki/models/eft/common/ILocationBase"; import { IPmcData } from "@spt-aki/models/eft/common/IPmcData"; import { IChangeRequirement, @@ -32,7 +32,6 @@ import { JsonUtil } from "@spt-aki/utils/JsonUtil"; import { ObjectId } from "@spt-aki/utils/ObjectId"; import { RandomUtil } from "@spt-aki/utils/RandomUtil"; import { TimeUtil } from "@spt-aki/utils/TimeUtil"; -import { ILocationBase } from "@spt-aki/models/eft/common/ILocationBase"; @injectable() export class RepeatableQuestController @@ -48,7 +47,6 @@ export class RepeatableQuestController @inject("JsonUtil") protected jsonUtil: JsonUtil, @inject("ProfileHelper") protected profileHelper: ProfileHelper, @inject("ProfileFixerService") protected profileFixerService: ProfileFixerService, - @inject("RagfairServerHelper") protected ragfairServerHelper: RagfairServerHelper, @inject("EventOutputHolder") protected eventOutputHolder: EventOutputHolder, @inject("PaymentService") protected paymentService: PaymentService, @inject("ObjectId") protected objectId: ObjectId, @@ -353,8 +351,8 @@ export class RepeatableQuestController * @returns A filtered list of locations that allow the player PMC level to access it */ protected getAllowedLocations( - locations: Record, - pmcLevel: number + locations: Record, + pmcLevel: number, ): Partial> { const allowedLocation: Partial> = {}; @@ -398,8 +396,7 @@ export class RepeatableQuestController return true; } - return (pmcLevel <= locationBase.RequiredPlayerLevelMax - && pmcLevel >= locationBase.RequiredPlayerLevelMin); + return (pmcLevel <= locationBase.RequiredPlayerLevelMax && pmcLevel >= locationBase.RequiredPlayerLevelMin); } public debugLogRepeatableQuestIds(pmcData: IPmcData): void