mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
refresh initequipment quality
This commit is contained in:
@@ -1293,7 +1293,7 @@ bool PlayerbotFactory::IsDesiredReplacement(Item* item)
|
||||
// }
|
||||
|
||||
uint32 delta = 1 + (80 - bot->getLevel()) / 10;
|
||||
return int32(bot->getLevel() - requiredLevel) > delta;
|
||||
return proto->Quality < ITEM_QUALITY_RARE || int32(bot->getLevel() - requiredLevel) > delta;
|
||||
}
|
||||
|
||||
inline Item* StoreNewItemInInventorySlot(Player* player, uint32 newItemId, uint32 count)
|
||||
|
||||
@@ -1448,7 +1448,7 @@ void RandomPlayerbotMgr::Refresh(Player* bot)
|
||||
bot->SetFullHealth();
|
||||
bot->SetPvP(true);
|
||||
|
||||
PlayerbotFactory factory(bot, bot->getLevel());
|
||||
PlayerbotFactory factory(bot, bot->getLevel(), ITEM_QUALITY_RARE);
|
||||
factory.Refresh();
|
||||
|
||||
if (bot->GetMaxPower(POWER_MANA) > 0)
|
||||
|
||||
Reference in New Issue
Block a user