Skip to content

Commit db15b07

Browse files
committed
Update game.cpp
1 parent f4ecbc4 commit db15b07

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/game/game.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3340,41 +3340,41 @@ ObjectCategory_t Game::getObjectCategory(const ItemType &it) {
33403340

33413341
uint64_t Game::getItemMarketPrice(const std::map<uint16_t, uint64_t> &itemMap, bool buyPrice) const {
33423342
uint64_t total = 0;
3343-
g_logger().warn("[getItemMarketPrice] - Starting calculation with " + std::to_string(itemMap.size()) + " items, buyPrice: " + (buyPrice ? "true" : "false"));
3343+
g_logger().debug("[getItemMarketPrice] - Starting calculation with " + std::to_string(itemMap.size()) + " items, buyPrice: " + (buyPrice ? "true" : "false"));
33443344

33453345
for (const auto &it : itemMap) {
33463346
uint64_t itemValue = 0;
33473347
if (it.first == ITEM_GOLD_COIN) {
33483348
itemValue = it.second;
33493349
total += itemValue;
3350-
g_logger().warn("[getItemMarketPrice] - Item ID " + std::to_string(it.first) + " (GOLD_COIN), Count " + std::to_string(it.second) + ", Value per unit: 1, Total value: " + std::to_string(itemValue));
3350+
g_logger().debug("[getItemMarketPrice] - Item ID " + std::to_string(it.first) + " (GOLD_COIN), Count " + std::to_string(it.second) + ", Value per unit: 1, Total value: " + std::to_string(itemValue));
33513351
} else if (it.first == ITEM_PLATINUM_COIN) {
33523352
itemValue = 100 * it.second;
33533353
total += itemValue;
3354-
g_logger().warn("[getItemMarketPrice] - Item ID " + std::to_string(it.first) + " (PLATINUM_COIN), Count " + std::to_string(it.second) + ", Value per unit: 100, Total value: " + std::to_string(itemValue));
3354+
g_logger().debug("[getItemMarketPrice] - Item ID " + std::to_string(it.first) + " (PLATINUM_COIN), Count " + std::to_string(it.second) + ", Value per unit: 100, Total value: " + std::to_string(itemValue));
33553355
} else if (it.first == ITEM_CRYSTAL_COIN) {
33563356
itemValue = 10000 * it.second;
33573357
total += itemValue;
3358-
g_logger().warn("[getItemMarketPrice] - Item ID " + std::to_string(it.first) + " (CRYSTAL_COIN), Count " + std::to_string(it.second) + ", Value per unit: 10000, Total value: " + std::to_string(itemValue));
3358+
g_logger().debug("[getItemMarketPrice] - Item ID " + std::to_string(it.first) + " (CRYSTAL_COIN), Count " + std::to_string(it.second) + ", Value per unit: 10000, Total value: " + std::to_string(itemValue));
33593359
} else {
33603360
auto marketIt = itemsPriceMap.find(it.first);
33613361
if (marketIt != itemsPriceMap.end()) {
33623362
for (auto &[tier, price] : (*marketIt).second) {
33633363
itemValue = price * it.second;
33643364
total += itemValue;
3365-
g_logger().warn("[getItemMarketPrice] - Item ID " + std::to_string(it.first) + ", Count " + std::to_string(it.second) + ", Tier " + std::to_string(tier) + ", Using MARKET_PRICE: " + std::to_string(price) + " per item, Total value: " + std::to_string(itemValue));
3365+
g_logger().debug("[getItemMarketPrice] - Item ID " + std::to_string(it.first) + ", Count " + std::to_string(it.second) + ", Tier " + std::to_string(tier) + ", Using MARKET_PRICE: " + std::to_string(price) + " per item, Total value: " + std::to_string(itemValue));
33663366
}
33673367
} else {
33683368
const ItemType &iType = Item::items[it.first];
33693369
uint64_t npcPrice = buyPrice ? iType.buyPrice : iType.sellPrice;
33703370
itemValue = npcPrice * it.second;
33713371
total += itemValue;
3372-
g_logger().warn("[getItemMarketPrice] - Item ID " + std::to_string(it.first) + ", Count " + std::to_string(it.second) + ", Using NPC_PRICE (" + (buyPrice ? "buy" : "sell") + "): " + std::to_string(npcPrice) + " per item, Total value: " + std::to_string(itemValue));
3372+
g_logger().debug("[getItemMarketPrice] - Item ID " + std::to_string(it.first) + ", Count " + std::to_string(it.second) + ", Using NPC_PRICE (" + (buyPrice ? "buy" : "sell") + "): " + std::to_string(npcPrice) + " per item, Total value: " + std::to_string(itemValue));
33733373
}
33743374
}
33753375
}
33763376

3377-
g_logger().warn("[getItemMarketPrice] - Final total: " + std::to_string(total));
3377+
g_logger().debug("[getItemMarketPrice] - Final total: " + std::to_string(total));
33783378
return total;
33793379
}
33803380

0 commit comments

Comments
 (0)