Skip to content

Commit

Permalink
Consistent types
Browse files Browse the repository at this point in the history
  • Loading branch information
Akkadius committed Oct 15, 2024
1 parent 4bdc3cb commit 5800cc2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions zone/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12832,15 +12832,15 @@ void Client::ClientToNpcAggroProcess()

bool Client::CheckHandin(
NPC *n,
std::map<std::string, uint32> handin,
std::map<std::string, uint32> required,
std::map<std::string, uint16> handin,
std::map<std::string, uint16> required,
std::vector<const EQ::ItemInstance *> items
)
{
auto h = Handin{};
auto r = Handin{};

std::vector<std::pair<const std::map<std::string, uint32>&, Handin&>> datasets = {};
std::vector<std::pair<const std::map<std::string, uint16>&, Handin&>> datasets = {};

// if we've already started the hand-in process, we don't want to re-process the hand-in data
// we continue to use the originally set hand-in bucket and decrement from it with each successive hand-in
Expand Down
4 changes: 2 additions & 2 deletions zone/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -1734,8 +1734,8 @@ class Client : public Mob

bool CheckHandin(
NPC* n,
std::map<std::string, uint32> handin,
std::map<std::string, uint32> required,
std::map<std::string, uint16> handin,
std::map<std::string, uint16> required,
std::vector<const EQ::ItemInstance*> items
);
void ReturnHandinItems();
Expand Down
4 changes: 2 additions & 2 deletions zone/lua_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3453,8 +3453,8 @@ bool Lua_Client::LuaCheckHandin(
return false;
}

std::map<std::string, uint32> handin_map;
std::map<std::string, uint32> required_map;
std::map<std::string, uint16> handin_map;
std::map<std::string, uint16> required_map;
std::vector<const EQ::ItemInstance*> items;

for (luabind::iterator i(handin_table), end; i != end; i++) {
Expand Down
4 changes: 2 additions & 2 deletions zone/perl_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3223,8 +3223,8 @@ bool Perl_Client_CheckHandin(
perl::hash handin = handin_ref;
perl::hash required = required_ref;

std::map<std::string, uint32> handin_map;
std::map<std::string, uint32> required_map;
std::map<std::string, uint16> handin_map;
std::map<std::string, uint16> required_map;
std::vector<const EQ::ItemInstance*> items;

for (auto e: handin) {
Expand Down
2 changes: 1 addition & 1 deletion zone/trading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ void Client::FinishTrade(Mob* tradingWith, bool finalizer, void* event_entry, st
if (!m_has_processed_handin_return) {
if (!m_handin_started) {
LogTradingDetail("EVENT_TRADE did not process handin, calling ReturnHandinItems() for NPC [{}]", tradingWith->GetNPCTypeID());
std::map<std::string, uint32> handin = {
std::map<std::string, uint16> handin = {
{"copper", trade->cp},
{"silver", trade->sp},
{"gold", trade->gp},
Expand Down

0 comments on commit 5800cc2

Please sign in to comment.