From e09b871d946ce7055e046c92947a8737085a4ba0 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 19 Jan 2025 23:08:42 +0800 Subject: [PATCH] Increase ammo count for hunter --- src/factory/PlayerbotFactory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/factory/PlayerbotFactory.cpp b/src/factory/PlayerbotFactory.cpp index 6acf2b2a..ff9930a7 100644 --- a/src/factory/PlayerbotFactory.cpp +++ b/src/factory/PlayerbotFactory.cpp @@ -2815,11 +2815,11 @@ void PlayerbotFactory::InitAmmo() uint32 entry = sRandomItemMgr->GetAmmo(level, subClass); uint32 count = bot->GetItemCount(entry); - uint32 maxCount = 6000; + uint32 maxCount = bot->getClass() == CLASS_HUNTER ? 6000 : 1000; - if (count < maxCount / 2) + if (count < maxCount) { - if (Item* newItem = StoreNewItemInInventorySlot(bot, entry, maxCount / 2)) + if (Item* newItem = StoreNewItemInInventorySlot(bot, entry, maxCount - count)) { newItem->AddToUpdateQueueOf(bot); }