From 4191c5c8b1be988d410f430f4de1fcf0522f73a6 Mon Sep 17 00:00:00 2001 From: Degradin Date: Sun, 5 Jan 2025 00:15:46 +0300 Subject: [PATCH] v0.1.2 Increased rate --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 2e025e2..7f0ea79 100644 --- a/bot.js +++ b/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(); // Сохраняем после всех корректировок }