private int RecalculateItemValue(Thing thing)
        {
            int val = (int)(TradeUtility.GetPricePlayerBuy(thing, settlement.trader.TraderKind.PriceTypeFor(thing.def, TradeAction.PlayerBuys).PriceMultiplier(), negotiator.GetStatValue(StatDefOf.TradePriceImprovement), settlement.trader.TradePriceImprovementOffsetForPlayer) * discount);

            return(Mathf.Clamp(val, 1, val));
        }