From 5cbc4b70145a64ca6285feea0bb1a0fdbc7bf6ca Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 28 Feb 2024 22:24:58 +0000 Subject: [PATCH] Improve sell chance % of player offers that are close to the average price --- project/src/helpers/RagfairSellHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/helpers/RagfairSellHelper.ts b/project/src/helpers/RagfairSellHelper.ts index a678cde5..e475e295 100644 --- a/project/src/helpers/RagfairSellHelper.ts +++ b/project/src/helpers/RagfairSellHelper.ts @@ -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)