Improve sell chance % of player offers that are close to the average price

This commit is contained in:
Dev 2024-02-28 22:24:58 +00:00
parent 874463509a
commit 5cbc4b7014

View File

@ -45,7 +45,7 @@ export class RagfairSellHelper
// Modfier gets applied twice to either penalize or incentivize over/under pricing (Probably a cleaner way to do this)
const sellModifier = (averageOfferPriceRub / playerListedPriceRub) * sellConfig.sellMultiplier;
let sellChance = Math.round((baseSellChancePercent * sellModifier) * sellModifier);
let sellChance = Math.round((baseSellChancePercent * sellModifier) * sellModifier ** 2); // Power of 2
// Adjust sell chance if below config value
if (sellChance < sellConfig.minSellChancePercent)