mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
Fix: remove ability to buy items from a vendor if they don't sell said item (#1105)
This commit is contained in:
@@ -134,3 +134,7 @@ void VendorComponent::SetupConstants() {
|
||||
m_RefreshTimeSeconds = vendorComps[0].refreshTimeSeconds;
|
||||
m_LootMatrixID = vendorComps[0].LootMatrixIndex;
|
||||
}
|
||||
|
||||
bool VendorComponent::SellsItem(const LOT item) const {
|
||||
return m_Inventory.find(item) != m_Inventory.end();
|
||||
}
|
||||
|
Reference in New Issue
Block a user