Update interface to correct naming scheme

This commit is contained in:
Dev 2024-07-05 09:39:01 +01:00
parent 5cd919a7d7
commit 5f280612c4
3 changed files with 7 additions and 8 deletions

View File

@ -4,7 +4,6 @@ import { ContextVariableType } from "@spt/context/ContextVariableType";
import { LocationGenerator } from "@spt/generators/LocationGenerator"; import { LocationGenerator } from "@spt/generators/LocationGenerator";
import { LootGenerator } from "@spt/generators/LootGenerator"; import { LootGenerator } from "@spt/generators/LootGenerator";
import { WeightedRandomHelper } from "@spt/helpers/WeightedRandomHelper"; import { WeightedRandomHelper } from "@spt/helpers/WeightedRandomHelper";
import { ILocation } from "@spt/models/eft/common/ILocation";
import { ILocationBase } from "@spt/models/eft/common/ILocationBase"; import { ILocationBase } from "@spt/models/eft/common/ILocationBase";
import { ILocationsGenerateAllResponse } from "@spt/models/eft/common/ILocationsSourceDestinationBase"; import { ILocationsGenerateAllResponse } from "@spt/models/eft/common/ILocationsSourceDestinationBase";
import { ILooseLoot, SpawnpointTemplate } from "@spt/models/eft/common/ILooseLoot"; import { ILooseLoot, SpawnpointTemplate } from "@spt/models/eft/common/ILooseLoot";
@ -76,10 +75,10 @@ export class LocationController
* @param name Map name * @param name Map name
* @returns ILocationBase * @returns ILocationBase
*/ */
protected generate(name: string): ILocationBase public generate(name: string): ILocationBase
{ {
const location: ILocation = this.databaseService.getLocation(name); const location = this.databaseService.getLocation(name);
const locationBaseClone: ILocationBase = this.cloner.clone(location.base); const locationBaseClone = this.cloner.clone(location.base);
// Update datetime property to now // Update datetime property to now
locationBaseClone.UnixDateTime = this.timeUtil.getTimestamp(); locationBaseClone.UnixDateTime = this.timeUtil.getTimestamp();

View File

@ -2,7 +2,7 @@ import { inject, injectable } from "tsyringe";
import { HandbookHelper } from "@spt/helpers/HandbookHelper"; import { HandbookHelper } from "@spt/helpers/HandbookHelper";
import { IStaticAmmoDetails } from "@spt/models/eft/common/ILocation"; import { IStaticAmmoDetails } from "@spt/models/eft/common/ILocation";
import { IPmcData } from "@spt/models/eft/common/IPmcData"; import { IPmcData } from "@spt/models/eft/common/IPmcData";
import { InsuredItem } from "@spt/models/eft/common/tables/IBotBase"; import { IInsuredItem } from "@spt/models/eft/common/tables/IBotBase";
import { Item, Location, Repairable, Upd } from "@spt/models/eft/common/tables/IItem"; import { Item, Location, Repairable, Upd } from "@spt/models/eft/common/tables/IItem";
import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem"; import { ITemplateItem } from "@spt/models/eft/common/tables/ITemplateItem";
import { BaseClasses } from "@spt/models/enums/BaseClasses"; import { BaseClasses } from "@spt/models/enums/BaseClasses";
@ -905,7 +905,7 @@ export class ItemHelper
public replaceIDs( public replaceIDs(
originalItems: Item[], originalItems: Item[],
pmcData?: IPmcData, pmcData?: IPmcData,
insuredItems?: InsuredItem[], insuredItems?: IInsuredItem[],
fastPanel?: any, fastPanel?: any,
): Item[] ): Item[]
{ {

View File

@ -22,7 +22,7 @@ export interface IBotBase
Stats: Stats Stats: Stats
Encyclopedia: Record<string, boolean> Encyclopedia: Record<string, boolean>
TaskConditionCounters: Record<string, ITaskConditionCounter> TaskConditionCounters: Record<string, ITaskConditionCounter>
InsuredItems: InsuredItem[] InsuredItems: IInsuredItem[]
Hideout: Hideout Hideout: Hideout
Quests: IQuestStatus[] Quests: IQuestStatus[]
TradersInfo: Record<string, TraderInfo> TradersInfo: Record<string, TraderInfo>
@ -365,7 +365,7 @@ export interface BackendCounter
value: number value: number
} }
export interface InsuredItem export interface IInsuredItem
{ {
/** Trader Id item was insured by */ /** Trader Id item was insured by */
tid: string tid: string