Remove unused injection + lint
This commit is contained in:
parent
e6b0dbbf8e
commit
561c5a7ffc
@ -3,9 +3,9 @@ import { inject, injectable } from "tsyringe";
|
|||||||
import { RepeatableQuestGenerator } from "@spt-aki/generators/RepeatableQuestGenerator";
|
import { RepeatableQuestGenerator } from "@spt-aki/generators/RepeatableQuestGenerator";
|
||||||
import { ProfileHelper } from "@spt-aki/helpers/ProfileHelper";
|
import { ProfileHelper } from "@spt-aki/helpers/ProfileHelper";
|
||||||
import { QuestHelper } from "@spt-aki/helpers/QuestHelper";
|
import { QuestHelper } from "@spt-aki/helpers/QuestHelper";
|
||||||
import { RagfairServerHelper } from "@spt-aki/helpers/RagfairServerHelper";
|
|
||||||
import { RepeatableQuestHelper } from "@spt-aki/helpers/RepeatableQuestHelper";
|
import { RepeatableQuestHelper } from "@spt-aki/helpers/RepeatableQuestHelper";
|
||||||
import { IEmptyRequestData } from "@spt-aki/models/eft/common/IEmptyRequestData";
|
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 { IPmcData } from "@spt-aki/models/eft/common/IPmcData";
|
||||||
import {
|
import {
|
||||||
IChangeRequirement,
|
IChangeRequirement,
|
||||||
@ -32,7 +32,6 @@ import { JsonUtil } from "@spt-aki/utils/JsonUtil";
|
|||||||
import { ObjectId } from "@spt-aki/utils/ObjectId";
|
import { ObjectId } from "@spt-aki/utils/ObjectId";
|
||||||
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
import { RandomUtil } from "@spt-aki/utils/RandomUtil";
|
||||||
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
import { TimeUtil } from "@spt-aki/utils/TimeUtil";
|
||||||
import { ILocationBase } from "@spt-aki/models/eft/common/ILocationBase";
|
|
||||||
|
|
||||||
@injectable()
|
@injectable()
|
||||||
export class RepeatableQuestController
|
export class RepeatableQuestController
|
||||||
@ -48,7 +47,6 @@ export class RepeatableQuestController
|
|||||||
@inject("JsonUtil") protected jsonUtil: JsonUtil,
|
@inject("JsonUtil") protected jsonUtil: JsonUtil,
|
||||||
@inject("ProfileHelper") protected profileHelper: ProfileHelper,
|
@inject("ProfileHelper") protected profileHelper: ProfileHelper,
|
||||||
@inject("ProfileFixerService") protected profileFixerService: ProfileFixerService,
|
@inject("ProfileFixerService") protected profileFixerService: ProfileFixerService,
|
||||||
@inject("RagfairServerHelper") protected ragfairServerHelper: RagfairServerHelper,
|
|
||||||
@inject("EventOutputHolder") protected eventOutputHolder: EventOutputHolder,
|
@inject("EventOutputHolder") protected eventOutputHolder: EventOutputHolder,
|
||||||
@inject("PaymentService") protected paymentService: PaymentService,
|
@inject("PaymentService") protected paymentService: PaymentService,
|
||||||
@inject("ObjectId") protected objectId: ObjectId,
|
@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
|
* @returns A filtered list of locations that allow the player PMC level to access it
|
||||||
*/
|
*/
|
||||||
protected getAllowedLocations(
|
protected getAllowedLocations(
|
||||||
locations: Record<ELocationName, string[]>,
|
locations: Record<ELocationName, string[]>,
|
||||||
pmcLevel: number
|
pmcLevel: number,
|
||||||
): Partial<Record<ELocationName, string[]>>
|
): Partial<Record<ELocationName, string[]>>
|
||||||
{
|
{
|
||||||
const allowedLocation: Partial<Record<ELocationName, string[]>> = {};
|
const allowedLocation: Partial<Record<ELocationName, string[]>> = {};
|
||||||
@ -398,8 +396,7 @@ export class RepeatableQuestController
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (pmcLevel <= locationBase.RequiredPlayerLevelMax
|
return (pmcLevel <= locationBase.RequiredPlayerLevelMax && pmcLevel >= locationBase.RequiredPlayerLevelMin);
|
||||||
&& pmcLevel >= locationBase.RequiredPlayerLevelMin);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public debugLogRepeatableQuestIds(pmcData: IPmcData): void
|
public debugLogRepeatableQuestIds(pmcData: IPmcData): void
|
||||||
|
Loading…
Reference in New Issue
Block a user