v0.1.2
Increased rate
This commit is contained in:
parent
edac4d8761
commit
4191c5c8b1
2
bot.js
2
bot.js
@ -914,7 +914,7 @@ const recoverResourcePrices = async () => {
|
||||
|
||||
// Гарантируем, что цена остаётся в диапазоне [50% basePrice, 150% basePrice]
|
||||
resource.price = Math.max(resource.price, Math.round(resource.basePrice * 0.5)); // Минимум
|
||||
resource.price = Math.min(resource.price, Math.round(resource.basePrice * 1.5)); // Максимум
|
||||
resource.price = Math.min(resource.price, Math.round(resource.basePrice * 3)); // Максимум
|
||||
|
||||
await resource.save(); // Сохраняем после всех корректировок
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user