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
|
// 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 }],
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user