AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
VendorItem Struct Reference

#include "CreatureData.h"

Public Member Functions

 VendorItem (uint32 _item, int32 _maxcount, uint32 _incrtime, uint32 _ExtendedCost)
 
bool IsGoldRequired (ItemTemplate const *pProto) const
 

Public Attributes

uint32 item
 
uint32 maxcount
 
uint32 incrtime
 
uint32 ExtendedCost
 

Detailed Description

Constructor & Destructor Documentation

◆ VendorItem()

VendorItem::VendorItem ( uint32  _item,
int32  _maxcount,
uint32  _incrtime,
uint32  _ExtendedCost 
)
inline
456 : item(_item), maxcount(_maxcount), incrtime(_incrtime), ExtendedCost(_ExtendedCost) {}
uint32 ExtendedCost
Definition: CreatureData.h:461
uint32 item
Definition: CreatureData.h:458
uint32 maxcount
Definition: CreatureData.h:459
uint32 incrtime
Definition: CreatureData.h:460

Member Function Documentation

◆ IsGoldRequired()

bool VendorItem::IsGoldRequired ( ItemTemplate const *  pProto) const
inline
464{ return pProto->HasFlag2(ITEM_FLAG2_DONT_IGNORE_BUY_PRICE) || !ExtendedCost; }
@ ITEM_FLAG2_DONT_IGNORE_BUY_PRICE
Definition: ItemTemplate.h:185

References ExtendedCost, ItemTemplate::HasFlag2(), and ITEM_FLAG2_DONT_IGNORE_BUY_PRICE.

Referenced by Player::BuyItemFromVendorSlot().

Member Data Documentation

◆ ExtendedCost

◆ incrtime

◆ item

◆ maxcount