Fix trader repair not costing any money

This commit is contained in:
Dev 2023-11-15 20:17:24 +00:00
parent 54a81b87d6
commit 467c87b026
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import { IProcessBaseTradeRequestData } from "@spt-aki/models/eft/trade/IProcess
export interface IProcessBuyTradeRequestData extends IProcessBaseTradeRequestData export interface IProcessBuyTradeRequestData extends IProcessBaseTradeRequestData
{ {
Action: "buy_from_trader" | "TradingConfirm" | "RestoreHealth" | "" | "SptInsure" Action: "buy_from_trader" | "TradingConfirm" | "RestoreHealth" | "" | "SptInsure" | "SptRepair"
type: string type: string
tid: string tid: string
item_id: string item_id: string

View File

@ -119,12 +119,12 @@ export class RepairService
// eslint-disable-next-line @typescript-eslint/naming-convention // eslint-disable-next-line @typescript-eslint/naming-convention
scheme_items: [ scheme_items: [
{ {
id: repairedItemId, id: "5449016a4bdc2d6f028b456f", // Rouble tpl
count: Math.round(repairCost) count: Math.round(repairCost)
} }
], ],
tid: traderId, tid: traderId,
Action: "", Action: "SptRepair",
type: "", type: "",
// eslint-disable-next-line @typescript-eslint/naming-convention // eslint-disable-next-line @typescript-eslint/naming-convention
item_id: "", item_id: "",