mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Bot initialization] Slot level check
This commit is contained in:
@@ -1486,7 +1486,13 @@ void PlayerbotFactory::InitEquipment(bool incremental)
|
|||||||
if (slot == EQUIPMENT_SLOT_TABARD || slot == EQUIPMENT_SLOT_BODY)
|
if (slot == EQUIPMENT_SLOT_TABARD || slot == EQUIPMENT_SLOT_BODY)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (slot == EQUIPMENT_SLOT_NECK && level < 40)
|
if (level < 40 && (slot == EQUIPMENT_SLOT_TRINKET1 || slot == EQUIPMENT_SLOT_TRINKET2))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (level < 25 && slot == EQUIPMENT_SLOT_NECK)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (level < 25 && slot == EQUIPMENT_SLOT_HEAD)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
std::vector<uint32>& ids = items[slot];
|
std::vector<uint32>& ids = items[slot];
|
||||||
|
|||||||
Reference in New Issue
Block a user