0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Further changes to sell curve

This commit is contained in:
Dev 2024-02-28 22:31:15 +00:00
parent 5cbc4b7014
commit eee10407e8

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 ** 2); // Power of 2
let sellChance = Math.round(((baseSellChancePercent * sellModifier) * sellModifier ** 3) + 10); // Power of 2
// Adjust sell chance if below config value
if (sellChance < sellConfig.minSellChancePercent)