TrinityCore
LootStoreItem Struct Reference

#include <LootMgr.h>

Public Member Functions

 LootStoreItem (uint32 _itemid, uint32 _reference, float _chance, bool _needs_quest, uint16 _lootmode, uint8 _groupid, uint8 _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
 
ConditionsReference conditions
 

Detailed Description

Definition at line 39 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootStoreItem()

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

Definition at line 53 of file LootMgr.h.

Member Function Documentation

◆ IsValid()

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

Definition at line 294 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Roll()

bool LootStoreItem::Roll ( bool  rate) const

Definition at line 278 of file LootMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ chance

float LootStoreItem::chance

Definition at line 43 of file LootMgr.h.

◆ conditions

ConditionsReference LootStoreItem::conditions

Definition at line 49 of file LootMgr.h.

◆ groupid

uint8 LootStoreItem::groupid

Definition at line 46 of file LootMgr.h.

◆ itemid

uint32 LootStoreItem::itemid

Definition at line 41 of file LootMgr.h.

◆ lootmode

uint16 LootStoreItem::lootmode

Definition at line 44 of file LootMgr.h.

◆ maxcount

uint8 LootStoreItem::maxcount

Definition at line 48 of file LootMgr.h.

◆ mincount

uint8 LootStoreItem::mincount

Definition at line 47 of file LootMgr.h.

◆ needs_quest

bool LootStoreItem::needs_quest

Definition at line 45 of file LootMgr.h.

◆ reference

uint32 LootStoreItem::reference

Definition at line 42 of file LootMgr.h.


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