TrinityCore
Loading...
Searching...
No Matches
LootStoreItem Struct Reference

#include <LootMgr.h>

Public Member Functions

 LootStoreItem (uint32 _itemid, uint32 _reference, float _chance, bool _needs_quest, uint16 _lootmode, uint8 _groupid, int32 _mincount, uint8 _maxcount)
 
bool Roll (bool rate) const
 
bool IsValid (LootStore const &store, uint32 entry) const
 

Public Attributes

uint32 itemid
 
uint32 reference
 
float chance
 
uint16 lootmode
 
bool needs_quest
 
uint8 groupid
 
uint8 mincount
 
uint8 maxcount
 
ConditionContainer conditions
 

Detailed Description

Definition at line 34 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootStoreItem()

LootStoreItem::LootStoreItem ( uint32  _itemid,
uint32  _reference,
float  _chance,
bool  _needs_quest,
uint16  _lootmode,
uint8  _groupid,
int32  _mincount,
uint8  _maxcount 
)
inline

Definition at line 48 of file LootMgr.h.

Member Function Documentation

◆ IsValid()

bool LootStoreItem::IsValid ( LootStore const &  store,
uint32  entry 
) const

◆ Roll()

bool LootStoreItem::Roll ( bool  rate) const

Member Data Documentation

◆ chance

float LootStoreItem::chance

◆ conditions

◆ groupid

◆ itemid

◆ lootmode

uint16 LootStoreItem::lootmode

Definition at line 39 of file LootMgr.h.

Referenced by LootGroupInvalidSelector::operator()(), and LootTemplate::Process().

◆ maxcount

uint8 LootStoreItem::maxcount

Definition at line 43 of file LootMgr.h.

Referenced by Loot::AddItem(), IsValid(), and LootTemplate::Process().

◆ mincount

uint8 LootStoreItem::mincount

Definition at line 42 of file LootMgr.h.

Referenced by Loot::AddItem(), and IsValid().

◆ needs_quest

bool LootStoreItem::needs_quest

Definition at line 40 of file LootMgr.h.

Referenced by Loot::AddItem(), LootTemplate::HasQuestDrop(), IsValid(), and LootItem::LootItem().

◆ reference


The documentation for this struct was generated from the following files: