Renamed function to clear up its purpose startPostRaidInsuranceLostProcess

This commit is contained in:
Dev 2024-09-20 16:38:19 +01:00
parent fefa9b3b39
commit b6b147f439
2 changed files with 6 additions and 5 deletions

View File

@ -68,12 +68,13 @@ export class InsuranceService {
}
/**
* Sends stored insured items as message to player
* @param pmcData profile to send insured items to
* Sends `i will go look for your stuff` trader message +
* Store lost insurance items inside profile for later retreval
* @param pmcData Profile to send insured items to
* @param sessionID SessionId of current player
* @param mapId Id of the map player died/exited that caused the insurance to be issued on
* @param mapId Id of the location player died/exited that caused the insurance to be issued on
*/
public sendInsuredItems(pmcData: IPmcData, sessionID: string, mapId: string): void {
public startPostRaidInsuranceLostProcess(pmcData: IPmcData, sessionID: string, mapId: string): void {
// Get insurance items for each trader
const globals = this.databaseService.getGlobals();
for (const traderId in this.getInsurance(sessionID)) {

View File

@ -747,7 +747,7 @@ export class LocationLifecycleService {
this.insuranceService.storeGearLostInRaidToSendLater(sessionId, mappedItems);
this.insuranceService.sendInsuredItems(preRaidPmcProfile, sessionId, locationName);
this.insuranceService.peePeePooPooFartPoo(preRaidPmcProfile, sessionId, locationName);
}
}