示例#1
0
void LootMgr::FillItemLoot(Loot *loot, uint32 loot_id)
{
    loot->items.clear();
    loot->gold = 0;

    LootStore::iterator tab = ItemLoot.find(loot_id);
    if (ItemLoot.end() == tab)return;
    else PushLoot(&tab->second, loot, false);
}
示例#2
0
void LootMgr::FillGatheringLoot(Loot * loot,uint32 loot_id)
{
	loot->items.clear();
	loot->gold = 0;

	LootStore::iterator tab = GatheringLoot.find(loot_id);
	if(tab != GatheringLoot.end())
		PushLoot(&tab->second, loot, false, false);
}
示例#3
0
void LootMgr::FillGOLoot(Loot * loot, uint32 loot_id, bool heroic)
{
    loot->items.clear();
    loot->gold = 0;

    LootStore::iterator tab = GOLoot.find(loot_id);
    if (GOLoot.end() == tab)return;
    else PushLoot(&tab->second, loot, heroic);
}
示例#4
0
void LootMgr::FillGOLoot(Loot * loot,uint32 loot_id, uint8 difficulty, uint8 team)
{
	loot->items.clear ();
	loot->gold = 0;

	LootStore::iterator tab = GOLoot.find(loot_id);
	if( GOLoot.end() == tab)
		return;
	else
		PushLoot(&tab->second, loot, difficulty, team, false);
}
示例#5
0
void LootMgr::FillPickpocketingLoot(Loot* loot, uint32 loot_id)
{
	loot->items.clear();
	loot->gold = 0;

	LootStore::iterator tab = PickpocketingLoot.find(loot_id);

	if(PickpocketingLoot.end() == tab)
		return;
	else
		PushLoot(&tab->second, loot, 0);
}
示例#6
0
void LootMgr::FillCreatureLoot(Loot* loot, uint32 loot_id, uint32 type)
{
	loot->items.clear();
	loot->gold = 0;

	LootStore::iterator tab = CreatureLoot.find(loot_id);

	if(CreatureLoot.end() == tab)
		return;
	else
		PushLoot(&tab->second, loot, type);
}
void LootMgr::FillFishingLoot(Loot * loot,uint32 loot_id)
{
    loot->items.clear();
    loot->gold = 0;

    LootStore::iterator tab = FishingLoot.find(loot_id);
    if( FishingLoot.end() == tab) 
    { 
    	return;
    }
    else PushLoot(&tab->second, loot, 0);
}
void LootMgr::FillGOLoot(Loot * loot,uint32 loot_id, uint32 instance_difficulty)
{
	loot->items.clear ();
	loot->gold =0;

	LootStore::iterator tab =GOLoot.find(loot_id);
	if( GOLoot.end()==tab)
	{ 
		return;
	}
	else PushLoot(&tab->second,loot, instance_difficulty);
}