[Initialization] Ammo init

This commit is contained in:
Yunfan Li
2024-06-28 20:14:22 +08:00
parent 6abc8d51e9
commit 3556a38dcd
4 changed files with 8 additions and 13 deletions

View File

@@ -2502,8 +2502,7 @@ void PlayerbotFactory::InitAmmo()
case ITEM_SUBCLASS_WEAPON_CROSSBOW:
subClass = ITEM_SUBCLASS_ARROW;
break;
case ITEM_SUBCLASS_WEAPON_THROWN:
subClass = ITEM_SUBCLASS_THROWN;
default:
break;
}
@@ -2516,7 +2515,7 @@ void PlayerbotFactory::InitAmmo()
if (count < maxCount / 2)
{
if (Item* newItem = StoreNewItemInInventorySlot(bot, entry, maxCount / 2)) {
if (Item* newItem = StoreNewItemInInventorySlot(bot, entry, maxCount)) {
newItem->AddToUpdateQueueOf(bot);
}
}