Remove persistPurchaseDataInProfile
from trader config - causes too many issues when disabled
By default profiles keep track of purchased items
This commit is contained in:
parent
86bada6194
commit
3c96a98a29
@ -97,7 +97,7 @@ export class TradeHelper
|
||||
}
|
||||
|
||||
// Decrement trader item count
|
||||
if (this.traderConfig.persistPurchaseDataInProfile && assortHasBuyRestrictions)
|
||||
if (assortHasBuyRestrictions)
|
||||
{
|
||||
const itemPurchaseDetails = {
|
||||
items: [{ itemId: buyRequestData.item_id, count: buyCount }],
|
||||
@ -170,7 +170,7 @@ export class TradeHelper
|
||||
// Decrement trader item count
|
||||
itemPurchased.upd.StackObjectsCount -= buyCount;
|
||||
|
||||
if (this.traderConfig.persistPurchaseDataInProfile && assortHasBuyRestrictions)
|
||||
if (assortHasBuyRestrictions)
|
||||
{
|
||||
const itemPurchaseDat = {
|
||||
items: [{ itemId: buyRequestData.item_id, count: buyCount }],
|
||||
|
@ -11,8 +11,6 @@ export interface ITraderConfig extends IBaseConfig
|
||||
tradersResetFromServerStart: boolean;
|
||||
updateTimeDefault: number;
|
||||
traderPriceMultipler: number;
|
||||
/** Keep track of purchased trader-limited items beyond server restarts to prevent server-restart item scumming */
|
||||
persistPurchaseDataInProfile: boolean;
|
||||
fence: FenceConfig;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user