mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 06:06:23 +00:00
refactor(Core): rename namespaces and macros to acore (#2454)
This commit is contained in:
@@ -42,7 +42,7 @@ LootStore LootTemplates_Skinning("skinning_loot_template", "creature s
|
||||
LootStore LootTemplates_Spell("spell_loot_template", "spell id (random item creating)", false);
|
||||
|
||||
// Selects invalid loot items to be removed from group possible entries (before rolling)
|
||||
struct LootGroupInvalidSelector : public ACORE::unary_function<LootStoreItem*, bool>
|
||||
struct LootGroupInvalidSelector : public acore::unary_function<LootStoreItem*, bool>
|
||||
{
|
||||
explicit LootGroupInvalidSelector(Loot const& loot, uint16 lootMode) : _loot(loot), _lootMode(lootMode) { }
|
||||
|
||||
@@ -1141,7 +1141,7 @@ LootStoreItem const* LootTemplate::LootGroup::Roll(Loot& loot, Player const *pla
|
||||
possibleLoot = EqualChanced;
|
||||
possibleLoot.remove_if(LootGroupInvalidSelector(loot, lootMode));
|
||||
if (!possibleLoot.empty()) // If nothing selected yet - an item is taken from equal-chanced part
|
||||
return Trinity::Containers::SelectRandomContainerElement(possibleLoot);
|
||||
return acore::Containers::SelectRandomContainerElement(possibleLoot);
|
||||
|
||||
return NULL; // Empty drop from the group
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user