mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
[Initialization] Ammo amount
This commit is contained in:
parent
4661715fca
commit
b9b4362bdd
@ -2515,7 +2515,7 @@ void PlayerbotFactory::InitAmmo()
|
|||||||
|
|
||||||
if (count < maxCount / 2)
|
if (count < maxCount / 2)
|
||||||
{
|
{
|
||||||
if (Item* newItem = StoreNewItemInInventorySlot(bot, entry, maxCount)) {
|
if (Item* newItem = StoreNewItemInInventorySlot(bot, entry, maxCount / 2)) {
|
||||||
newItem->AddToUpdateQueueOf(bot);
|
newItem->AddToUpdateQueueOf(bot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user