Revert "This PR aims to resolves issue #280 (!190)"

This reverts commit e0e62d8e47.
This commit is contained in:
Dev 2024-01-10 17:43:39 +00:00
parent 5e9be7a2fd
commit f66b2d04a9

View File

@ -525,21 +525,6 @@ export class InraidController
*/ */
public itemDelivery(sessionId: string, traderId: string, items: Item[]): void public itemDelivery(sessionId: string, traderId: string, items: Item[]): void
{ {
const insuredItems: Item[] = items.filter(item =>
this.insuranceService.getInsuranceItems(sessionId, Traders[traderId]).includes(item)
);
// Remove insured items from the insurance list
insuredItems.forEach(insuredItem =>
{
const insuranceList = this.insuranceService.getInsuranceItems(sessionId, Traders[traderId]);
const index = insuranceList.indexOf(insuredItem);
if (index !== -1)
{
insuranceList.splice(index, 1);
}
});
const dialogueTemplates = this.databaseServer.getTables().traders[traderId].dialogue; const dialogueTemplates = this.databaseServer.getTables().traders[traderId].dialogue;
const messageId = this.randomUtil.getArrayValue(dialogueTemplates.itemsDelivered); const messageId = this.randomUtil.getArrayValue(dialogueTemplates.itemsDelivered);
const messageStoreTime = this.timeUtil.getHoursAsSeconds(this.traderConfig.fence.btrDeliveryExpireHours); const messageStoreTime = this.timeUtil.getHoursAsSeconds(this.traderConfig.fence.btrDeliveryExpireHours);