fix: non existent function
This commit is contained in:
parent
9a3706d0a3
commit
c39472066d
@ -24,7 +24,6 @@ import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
|
||||
import { Category, HandbookItem } from "@spt-aki/models/eft/common/tables/IHandbookBase";
|
||||
import { RagfairPriceService } from "@spt-aki/services/RagfairPriceService";
|
||||
import { IDatabaseTables } from "@spt-aki/models/spt/server/IDatabaseTables";
|
||||
import { Money } from "@spt-aki/models/enums/Money";
|
||||
|
||||
import config from "../config.json";
|
||||
import categoryConfig from "../categories.json";
|
||||
@ -138,11 +137,7 @@ class EyesOfATraderMod implements IPostDBLoadMod {
|
||||
|
||||
private getApproxFleaPrice(itemId: string): number {
|
||||
const ragfairService = this.container.resolve<RagfairPriceService>("RagfairPriceService");
|
||||
const item = {
|
||||
_id: itemId,
|
||||
_tpl: itemId
|
||||
}
|
||||
const dynamicPrice = ragfairService.getDynamicOfferPrice([item], Money.ROUBLES);
|
||||
const dynamicPrice = ragfairService.getDynamicPriceForItem(itemId);
|
||||
return dynamicPrice * config.fleaPriceMultiplier;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user