Remove persistPurchaseDataInProfile from trader config - causes too many issues when disabled

By default profiles keep track of purchased items
This commit is contained in:
Dev 2024-03-30 12:59:56 +00:00
parent 86bada6194
commit 3c96a98a29
2 changed files with 2 additions and 4 deletions

View File

@ -97,7 +97,7 @@ export class TradeHelper
} }
// Decrement trader item count // Decrement trader item count
if (this.traderConfig.persistPurchaseDataInProfile && assortHasBuyRestrictions) if (assortHasBuyRestrictions)
{ {
const itemPurchaseDetails = { const itemPurchaseDetails = {
items: [{ itemId: buyRequestData.item_id, count: buyCount }], items: [{ itemId: buyRequestData.item_id, count: buyCount }],
@ -170,7 +170,7 @@ export class TradeHelper
// Decrement trader item count // Decrement trader item count
itemPurchased.upd.StackObjectsCount -= buyCount; itemPurchased.upd.StackObjectsCount -= buyCount;
if (this.traderConfig.persistPurchaseDataInProfile && assortHasBuyRestrictions) if (assortHasBuyRestrictions)
{ {
const itemPurchaseDat = { const itemPurchaseDat = {
items: [{ itemId: buyRequestData.item_id, count: buyCount }], items: [{ itemId: buyRequestData.item_id, count: buyCount }],

View File

@ -11,8 +11,6 @@ export interface ITraderConfig extends IBaseConfig
tradersResetFromServerStart: boolean; tradersResetFromServerStart: boolean;
updateTimeDefault: number; updateTimeDefault: number;
traderPriceMultipler: number; traderPriceMultipler: number;
/** Keep track of purchased trader-limited items beyond server restarts to prevent server-restart item scumming */
persistPurchaseDataInProfile: boolean;
fence: FenceConfig; fence: FenceConfig;
} }