mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Increase ammo count for hunter
This commit is contained in:
@@ -2815,11 +2815,11 @@ void PlayerbotFactory::InitAmmo()
|
|||||||
|
|
||||||
uint32 entry = sRandomItemMgr->GetAmmo(level, subClass);
|
uint32 entry = sRandomItemMgr->GetAmmo(level, subClass);
|
||||||
uint32 count = bot->GetItemCount(entry);
|
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);
|
newItem->AddToUpdateQueueOf(bot);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user