Fix trader repair not costing any money
This commit is contained in:
parent
54a81b87d6
commit
467c87b026
@ -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
|
||||||
|
@ -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: "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user