Supply and Demand Update
This update brings the concept of supply and demand to pokesell. Every pokemon sold in the server all account for a lower price being set due to too high of a supply! You can edit how the supply affects the price of pokemon in the configs and this update brings the following configs:
"enableDecayingPrices": true,
"decayPercentage": 1.01,
"staticCoefficient": 1.0,
"enableDynamicCoefficient": false,
"targetZeroValue": 1000.0,
"hourlySoldDecay": 0.1,
Where the configs do the following:
- enableDecayingPrices
- Enables the price decay itself, disable if you don't want dropping prices
- decayPercentage
- Chooses how quickly it decays, follows a formula I will show at the bottom
- enableDynamicCoefficient
- The mod will automatically pick a coefficient in the formula
- targetZeroValue
- Set a sell amount where you would like the price to reach 0 at
- hourlySoldDecay
- How many of the pokemon will be removed from the sold bucket each hour, this 0.1 would mean that each hour 10% of the pokemon would be removed causing the prices to go back up
The formula used is
basePrice - coefficient*decayPercentage^amountSold
This formula gives a nice and smooth curve and will allow the drop price to gradually speed up
Added PC Support Fixed Bug That Caused a Crash with LuckPerms
Initial Version



