Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
LootStoreItem Struct Reference

#include <LootMgr.h>

Public Member Functions

bool IsValid (LootStore const &store, uint32 entry) const
 LootStoreItem (uint32 _itemid, float _chanceOrQuestChance, uint16 _lootmode, uint8 _group, int32 _mincountOrRef, uint8 _maxcount)
bool Roll (bool rate) const

Public Attributes

float chance
ConditionList conditions
uint8 group: 7
uint32 itemid
uint16 lootmode
uint8 maxcount: 8
int32 mincountOrRef
bool needs_quest: 1

Detailed Description

Definition at line 93 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootStoreItem()

LootStoreItem::LootStoreItem ( uint32 _itemid,
float _chanceOrQuestChance,
uint16 _lootmode,
uint8 _group,
int32 _mincountOrRef,
uint8 _maxcount )
inline

Definition at line 106 of file LootMgr.h.

References chance, group, itemid, lootmode, maxcount, mincountOrRef, and needs_quest.

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

ConditionList LootStoreItem::conditions

Definition at line 102 of file LootMgr.h.

Referenced by Loot::AddItem(), and LootTemplate::CopyConditions().

◆ group

◆ itemid

◆ lootmode

uint16 LootStoreItem::lootmode

◆ maxcount

uint8 LootStoreItem::maxcount

Definition at line 101 of file LootMgr.h.

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

◆ mincountOrRef

◆ needs_quest

bool LootStoreItem::needs_quest

Definition at line 100 of file LootMgr.h.

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


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