Stubbed out insurance code

This commit is contained in:
Dev 2024-07-05 20:39:38 +01:00
parent 8392bc97cf
commit 5e4fec3aa3

View File

@ -35,6 +35,7 @@ import { SaveServer } from "@spt/servers/SaveServer";
import { BotGenerationCacheService } from "@spt/services/BotGenerationCacheService"; import { BotGenerationCacheService } from "@spt/services/BotGenerationCacheService";
import { BotLootCacheService } from "@spt/services/BotLootCacheService"; import { BotLootCacheService } from "@spt/services/BotLootCacheService";
import { DatabaseService } from "@spt/services/DatabaseService"; import { DatabaseService } from "@spt/services/DatabaseService";
import { InsuranceService } from "@spt/services/InsuranceService";
import { LocalisationService } from "@spt/services/LocalisationService"; import { LocalisationService } from "@spt/services/LocalisationService";
import { MailSendService } from "@spt/services/MailSendService"; import { MailSendService } from "@spt/services/MailSendService";
import { MatchBotDetailsCacheService } from "@spt/services/MatchBotDetailsCacheService"; import { MatchBotDetailsCacheService } from "@spt/services/MatchBotDetailsCacheService";
@ -73,6 +74,7 @@ export class MatchController
@inject("TraderHelper") protected traderHelper: TraderHelper, @inject("TraderHelper") protected traderHelper: TraderHelper,
@inject("BotLootCacheService") protected botLootCacheService: BotLootCacheService, @inject("BotLootCacheService") protected botLootCacheService: BotLootCacheService,
@inject("LocalisationService") protected localisationService: LocalisationService, @inject("LocalisationService") protected localisationService: LocalisationService,
@inject("InsuranceService") protected insuranceService: InsuranceService,
@inject("ConfigServer") protected configServer: ConfigServer, @inject("ConfigServer") protected configServer: ConfigServer,
@inject("ProfileSnapshotService") protected profileSnapshotService: ProfileSnapshotService, @inject("ProfileSnapshotService") protected profileSnapshotService: ProfileSnapshotService,
@inject("BotGenerationCacheService") protected botGenerationCacheService: BotGenerationCacheService, @inject("BotGenerationCacheService") protected botGenerationCacheService: BotGenerationCacheService,
@ -486,6 +488,25 @@ export class MatchController
const itemsToSend = btrContainerAndItems.filter((item) => item._id !== btrKey); const itemsToSend = btrContainerAndItems.filter((item) => item._id !== btrKey);
this.btrItemDelivery(sessionId, Traders.BTR, itemsToSend); this.btrItemDelivery(sessionId, Traders.BTR, itemsToSend);
} }
if (request.lostInsuredItems?.length > 0)
{
// TODO - refactor code to work
// Get array of insured items+child that were lost in raid
// const gearToStore = this.insuranceService.getGearLostInRaid(
// pmcProfile,
// postRaidRequest,
// preRaidGear,
// sessionId,
// isDead,
// );
// this.insuranceService.storeGearLostInRaidToSendLater(
// sessionId,
// gearToStore,
// );
}
} }
/** /**