mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 20:51:29 +00:00
[Cleanup] Remove DumpMerchantList() from zone.cpp/zone.h (#3343)
# Notes - This is unused.
This commit is contained in:
parent
20bed20f47
commit
cd82bd8472
@ -353,23 +353,10 @@ bool Zone::LoadGroundSpawns() {
|
|||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Zone::DumpMerchantList(uint32 npcid) {
|
|
||||||
std::list<TempMerchantList> tmp_merlist = tmpmerchanttable[npcid];
|
|
||||||
std::list<TempMerchantList>::const_iterator tmp_itr;
|
|
||||||
TempMerchantList ml;
|
|
||||||
|
|
||||||
for (tmp_itr = tmp_merlist.begin(); tmp_itr != tmp_merlist.end(); ++tmp_itr) {
|
|
||||||
ml = *tmp_itr;
|
|
||||||
|
|
||||||
LogInventory("slot[{}] Orig[{}] Item[{}] Charges[{}]", ml.slot, ml.origslot, ml.item, ml.charges);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int Zone::SaveTempItem(uint32 merchantid, uint32 npcid, uint32 item, int32 charges, bool sold) {
|
int Zone::SaveTempItem(uint32 merchantid, uint32 npcid, uint32 item, int32 charges, bool sold) {
|
||||||
|
|
||||||
LogInventory("[{}] [{}] charges of [{}]", ((sold) ? "Sold" : "Bought"),
|
LogInventory("[{}] [{}] charges of [{}]", ((sold) ? "Sold" : "Bought"),
|
||||||
charges, item);
|
charges, item);
|
||||||
//DumpMerchantList(npcid);
|
|
||||||
// Iterate past main items.
|
// Iterate past main items.
|
||||||
// If the item being transacted is in this list, return 0;
|
// If the item being transacted is in this list, return 0;
|
||||||
std::list<MerchantList> merlist = merchanttable[merchantid];
|
std::list<MerchantList> merlist = merchanttable[merchantid];
|
||||||
@ -436,7 +423,6 @@ int Zone::SaveTempItem(uint32 merchantid, uint32 npcid, uint32 item, int32 charg
|
|||||||
}
|
}
|
||||||
|
|
||||||
tmpmerchanttable[npcid] = tmp_merlist;
|
tmpmerchanttable[npcid] = tmp_merlist;
|
||||||
//DumpMerchantList(npcid);
|
|
||||||
return ml.slot;
|
return ml.slot;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -499,7 +485,6 @@ int Zone::SaveTempItem(uint32 merchantid, uint32 npcid, uint32 item, int32 charg
|
|||||||
ml2.origslot = first_empty_slot;
|
ml2.origslot = first_empty_slot;
|
||||||
tmp_merlist.push_back(ml2);
|
tmp_merlist.push_back(ml2);
|
||||||
tmpmerchanttable[npcid] = tmp_merlist;
|
tmpmerchanttable[npcid] = tmp_merlist;
|
||||||
//DumpMerchantList(npcid);
|
|
||||||
return ml2.slot;
|
return ml2.slot;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -180,7 +180,6 @@ public:
|
|||||||
inline void ShowNPCGlobalLoot(Client *to, NPC *who) { m_global_loot.ShowNPCGlobalLoot(to, who); }
|
inline void ShowNPCGlobalLoot(Client *to, NPC *who) { m_global_loot.ShowNPCGlobalLoot(to, who); }
|
||||||
inline void ShowZoneGlobalLoot(Client *to) { m_global_loot.ShowZoneGlobalLoot(to); }
|
inline void ShowZoneGlobalLoot(Client *to) { m_global_loot.ShowZoneGlobalLoot(to); }
|
||||||
int GetZoneTotalBlockedSpells() { return zone_total_blocked_spells; }
|
int GetZoneTotalBlockedSpells() { return zone_total_blocked_spells; }
|
||||||
void DumpMerchantList(uint32 npcid);
|
|
||||||
int SaveTempItem(uint32 merchantid, uint32 npcid, uint32 item, int32 charges, bool sold = false);
|
int SaveTempItem(uint32 merchantid, uint32 npcid, uint32 item, int32 charges, bool sold = false);
|
||||||
int32 MobsAggroCount() { return aggroedmobs; }
|
int32 MobsAggroCount() { return aggroedmobs; }
|
||||||
DynamicZone *GetDynamicZone();
|
DynamicZone *GetDynamicZone();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user