Increased rate
This commit is contained in:
Degradin 2025-01-05 00:15:46 +03:00
parent edac4d8761
commit 4191c5c8b1

2
bot.js
View File

@ -914,7 +914,7 @@ const recoverResourcePrices = async () => {
// Гарантируем, что цена остаётся в диапазоне [50% basePrice, 150% basePrice] // Гарантируем, что цена остаётся в диапазоне [50% basePrice, 150% basePrice]
resource.price = Math.max(resource.price, Math.round(resource.basePrice * 0.5)); // Минимум 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(); // Сохраняем после всех корректировок await resource.save(); // Сохраняем после всех корректировок
} }